E-mail List Archives
Re: EMs and EXs
From: julian.rickards@ndm.gov.on.ca
Date: Dec 1, 2004 7:53AM
- Next message: Jens Meiert: "Re: EMs and EXs"
- Previous message: Jon Gunderson: "Re: EMs and EXs"
- Next message in Thread: Jens Meiert: "Re: EMs and EXs"
- Previous message in Thread: Jon Gunderson: "Re: EMs and EXs"
- View all messages in this Thread
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.
- Next message: Jens Meiert: "Re: EMs and EXs"
- Previous message: Jon Gunderson: "Re: EMs and EXs"
- Next message in Thread: Jens Meiert: "Re: EMs and EXs"
- Previous message in Thread: Jon Gunderson: "Re: EMs and EXs"
- View all messages in this Thread