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

Re: em

From: Jonas Sicking <sicking@bigfoot.com>
Date: Tue, 20 Jun 2000 10:03:01 +0200
Message-ID: <003501bfda8d$f4a59740$3110f7d4@Milwork08>
To: <www-style@w3.org>
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)?

The problem is, what would the following mean:
font-size: 2em;

You cant really make the font twice as big as itself so therefor the em
reffers to the fontsize of the parent in the "font-size" property.

/ Jonas Sicking
Received on Tuesday, 20 June 2000 04:02:29 GMT

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