Re: em

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 UTC