I'm a newbie of CSS and I'm wondering about EMS.
How do they works?
Thanks in advance,
SmogTheCatEMS? What do you mean by EMS?1 em is the size of a normal capital "M" so 1.5em would be 50% larger (or .5x) than a normal em
<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/syndata.html#length-unitsJust">http://www.w3.org/TR/REC-CSS2/syndata.h ... -unitsJust</a><!-- m --> 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.
How do they works?
Thanks in advance,
SmogTheCatEMS? What do you mean by EMS?1 em is the size of a normal capital "M" so 1.5em would be 50% larger (or .5x) than a normal em
<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/syndata.html#length-unitsJust">http://www.w3.org/TR/REC-CSS2/syndata.h ... -unitsJust</a><!-- m --> 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.