Tuesday, February 17, 2015

Calculated values in modern browsers

This is one I came across recently, calc() allows you to do simple math and unit conversions in CSS. 

background-position: calc(100% - 50px) calc(100% - 20px);

Browser support is quite good! Can I use... Support tables for HTML5, CSS3, etc

No comments:

Post a Comment