W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 1999

RE: em size as margin

From: Dave J Woolley <DJW@bts.co.uk>
Date: Fri, 24 Sep 1999 17:38:15 +0100
Message-ID: <81E4A2BC03CED111845100104B62AFB53F3D2C@stagecoach.bts.co.uk>
To: www-amaya@w3.org
> From:	John Russell [SMTP:VE3LL@RAC.CA]
> By definition an em is the width of the letter m.
> Normally one assumes that this is measured on the
> normal text font used (either determined by the browser
> user or defined by the page designer with their font settings)
	This is what the CSS2 spec says.  Unfortunately you
	don't say what element you are setting the size on.
	(The sample style sheet uses the browser default as
	the reference for all sizes.)

The 'em' unit is equal to the computed value of the 'font-size' property of
element on which it is used. The exception is when 'em' occurs in the value
the 'font-size' property itself, in which case it refers to the font size of
the parent
element. It may be used for vertical or horizontal measurement. (This unit
is also
	sometimes called the quad-width in typographic texts.)
Received on Friday, 24 September 1999 12:41:01 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:20 UTC