W3C home > Mailing lists > Public > www-style@w3.org > August 1999

Re: When font-size and font size collide

From: Tantek Celik <tantek@cs.stanford.edu>
Date: Tue, 17 Aug 1999 13:34:23 -0700
To: "L. David Baron" <dbaron@fas.harvard.edu>, www-style@w3.org
Message-ID: <1277200447-150417097@psdbay.com>
> However, I *think* <font size="+2"> is often treated as relative to the
> base font size of the document, not the font size of the parent
> element.

It is.  FONT SIZE=+/- is pretty bizarre and completely unrepresentable in
CSS.

For example:

<FONT SIZE=-1><FONT SIZE=-1>Sample text 1</FONT></FONT>

<SMALL><SMALL>Sample text 2</SMALL></SMALL>

Sample text 2 will be smaller because SMALL is cumulative, and FONT SIZE=-1
is not.

And yes, FONT SIZE=+/- is treated relative to the containing BASEFONT SIZE=
tag.  There is an implicit BASEFONT SIZE=3 somewhere near the top of the
document tree.

Blame HTML 3.2.

Tantek
Received on Tuesday, 17 August 1999 16:34:43 GMT

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