WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: EMs and EXs

for

From: julian.rickards
Date: Dec 1, 2004 7:53AM


ex has less support than em, go with em if you are considering either.

In addition to what jongund mentioned, although em and ex relate to heights,
you can use either to specify widths as well such as margin-left: 1em or
width: 30ex.

Jules

-----Original Message-----
From: jongund [mailto: <EMAIL REMOVED> ]

Dagmar,

em is the height of the current uppercase font being rendered
ex is the height of the current lowercase font being rendered

So these provide spacing based on the current font height of
the element being styled with CSS.