News for hackers. Stuff that matters.
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
Re:Em Baseline Generator by daigoba66 on Tuesday April 02, 2013 @07:23AM (#5478643)
How is it different, better/worse, than expressing font sizes as percentage?
Re:Em Baseline Generator by joe5150 on Tuesday April 02, 2013 @07:56AM (#5478754)
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".