Previous Message
Next Message

Ex's and Em's and css frames

Sent by Ed Seehouse on 20 June 2006 19:07


On 6/20/06, [EMAIL-REMOVED]
[EMAIL-REMOVED]> wrote:
> What the heck is the ratio of ex's and em's to font size and pixels.

There is no such ratio.  It is undefined by CSS.  Each user agent
defines the default size for a given font, but when the font size
changes the em and ex change also.

An ex, if I recall correctly, is simply the height of the "x" in
whatever font you are using at whatever size you happen to be using it
at.  An em is usually about twice that, but is defined as the width of
the capital "M" in the current font and might not be twice that of an
em, depending on the font and the browser.

In practice you can usally assume 1em to be equal to 2ex, but the ex
is intended to measure a vertical height and the em to measure a
horizontal width so each should be used for it's apropriate context.

-- 
Ed Seedhouse
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: