W3C home > Mailing lists > Public > www-style@w3.org > February 1997

RE: [Q] Shouldn't margin-bottom...? -Reply

From: Charles Peyton Taylor <CTaylor@wposmtp.nps.navy.mil>
Date: Wed, 05 Feb 1997 12:38:52 -0800
Message-Id: <s2f87fd8.055@wposmtp.nps.navy.mil>
To: www-style@w3.org


>>> Steve Knoblock <knoblock@worldnet.att.net> 02/05/97 11:29am >>>
>
>Also are you going to fix the behavior of headings with percent
>font-sizes?
>When I say font-size: 100% on a heading I expect it to be the same
>size as the font-size specified on the body. Not 100% of some default
>size.

This is true. The CSS spec says that percentages are relative 
to the parent element's font size [1].

>Perhaps I do not fully understand the em. I understand it is a unit
>equal to the point size of the type. The following code shows a
>margin of 1px for both paragraphs. Not one margin of 12pt and one
>margin of 24pt equivalents.

    I *thought* that em's were the width of the letter "m" in 
a font, but the spec says that it's equal to the height of 
the elements font [2], so what do I know? It makes sense, 
though, that ems are "m"s, especially when exs are "x"s.

    Also, "IE" is not necessarily what you 
might think of as being "IE" because the Mac version does 
things that the W95 version doesn't; I've noticed that 
em is one of those things. 

[1]
http://www.w3.org/pub/WWW/TR/REC-CSS1#font-size

[2]
http://www.w3.org/pub/WWW/TR/REC-CSS1#units

> -:-     City Gallery ed.- http://www.webcom.com/cityg  PhotoGen list
>admin.
> -:-     Steve Knoblock,  knoblock@worldnet.att.net
> _/     Member:  Natl. Stereo. Assoc.
>http://www.tisco.com/3d-web/nsa/nsa.htm

C  h a r l e s    P e y t o n   T a y l o r         ctaylor@nps.navy.mil
The opinions and views expressed are my own and do not reflect those of 
the Naval PostGraduate School 

                       "Dreams are like water, colorless, and dangerous"

                   http://web.nps.navy.mil/%7ectaylor/
Received on Wednesday, 5 February 1997 15:51:24 GMT

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