SmogTheCat
06-28-2005, 03:30 AM
I'm a newbie of CSS and I'm wondering about EMS.
How do they works?
Thanks in advance,
SmogTheCat
How do they works?
Thanks in advance,
SmogTheCat
|
Click to See Complete Forum and Search --> : ems: how do they works? SmogTheCat 06-28-2005, 03:30 AM I'm a newbie of CSS and I'm wondering about EMS. How do they works? Thanks in advance, SmogTheCat snaip 06-28-2005, 03:44 AM EMS? What do you mean by EMS? BeachSide 06-28-2005, 05:03 AM 1 em is the size of a normal capital "M" so 1.5em would be 50% larger (or .5x) than a normal em http://www.w3.org/TR/REC-CSS2/syndata.html#length-units NogDog 06-28-2005, 07:39 AM Just to expand on BeachSide's reply, for all practical purposes 1em = current font size. So, if your font size is 10px, then 1.5em will equal 15px. Where this can be particularly useful in your layout is that the size of the em in any given part of the layout will increase or decrease proportionally when the user increases/decreases the browser's font size, keeping any measurements which use em units the same size in relation to the text size. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |