W3C home > Mailing lists > Public > www-style@w3.org > March 2004

Re: thoughts on non-compliant browsers

From: Ernest Cline <ernestcline@mindspring.com>
Date: Thu, 11 Mar 2004 10:50:46 -0500
Message-ID: <410-220043411155046109@mindspring.com>
To: "Philip TAYLOR" <P.Taylor@Rhul.Ac.Uk>
Cc: www-style@w3.org




> [Original Message]
> From: Philip TAYLOR <P.Taylor@Rhul.Ac.Uk>
>
> David Woolley wrote:
>
> [snip]
>
> > Designers should, of course, specify line heights in ems.
>
> Surely in exs ?  Ems are horizontal units, derived from the
> notional width of a cap. "M" in the current font; exs are
> vertical units, derived from the notional height of a
> lower-case "x" in the current font.

That is the case for traditional typography, but not CSS.
CSS assumes that the height of the em quad is also
the intrinsic height of a line of text, and  it uses that as
the definition of em.  Thus for example, if you want
double spacing, set 'line-height' to 2em.  Also, altho
it is a part of CSS, proper support for the ex unit has
been spotty at best, with several UA's assuming
that it is a fixed fraction of an em.
Received on Thursday, 11 March 2004 10:50:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:27 GMT