Re:Em Baseline Generator
by arianvanp on Tuesday April 02, 2013 @07:18AM
(#5478628)
With em you define a base font-size in px. And then you express multiples of the base in em, instead of multiplying manually
[ Parent
| on HN ]
How is it different, better/worse, than expressing font sizes as percentage?
Ems and percents behave differently when a user changes the browser's font size setting (which I think you only see in IE now), but are otherwise the same. Other than that the only advantage is in the fact that ems are a standard convention for designers and typographers, who are used to expressing measurements as a proportion of the text size, and "1 em" is just a more concise representation of that measurement than "100% of the point size of the font in use".