Monday, January 7, 2013

Difference between em, px, pt and percent in font size




1em = 12pt (point) = 16px (pixel) = 100% (percent).
1 point =1/12 inch
"percent %" is recommended for fully scalable of mobile devices and for accessibility.
such as
 html { font-size: 150%; )
or
body { font-size: 150%; )

No comments:

Post a Comment