W3C home > Mailing lists > Public > www-style@w3.org > June 2000

Re: em

From: Eric A. Meyer <eam3@po.CWRU.Edu>
Date: Thu, 22 Jun 2000 14:38:58 -0400 (EDT)
Message-ID: <Pine.GSO.3.95.1000619115536.26855A-100000@sr71>
To: www-style@w3.org
On Mon, 19 Jun 2000, Matthew Brealey wrote:

> Erik van der Poel wrote:
> > Todd Fahrner wrote:
> > >
> > > 1em is the size of the parent element's font.
> > 
> > Just a minor correction: When the "em" unit is used in the font-size
> > property, it refers to the parent element's font-size, but when it is
> > used in any other property, it refers to this element's font-size (not
> > the parent's).
> 
> Shoudn't that be font size (size of font)?

   It depends on what you mean by "size of font."  Visually, the size of the
font may be different than the 'font-size' value.  However, the value of
'font-size' is used to determine what an em is in a given situation, with the
particular value to use being determined as Erik explains above.

--
Eric A. Meyer  -  eric@meyerweb.com  -  http://www.meyerweb.com/eric/
 Author, "CSS: The Definitive Guide"    http://www.oreilly.com/catalog/css/
 Editor, Style Sheets Reference Guide   http://style.webreview.com/
 Coordinator, CSS1 Test Suite           http://www.w3.org/Style/CSS/Test/
Received on Friday, 23 June 2000 08:29:46 GMT

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