Friday, December 6, 2013

using calc in modern CSS

calc will calculate an offset from a percentage measurement in pixels.

.pie-chart-calc {
   height: calc(20% + 100px);
}

No comments:

Post a Comment