W3C home > Mailing lists > Public > www-html@w3.org > April 1998

Re: Absolute Font-size

From: Garth Wallace <gwalla@hotmail.com>
Date: Mon, 27 Apr 1998 14:41:09 PDT
Message-ID: <19980427214110.24961.qmail@hotmail.com>
To: klempau@obelix.sunflowers.de, kaj@interbizz.se
Cc: www-html@w3.org
>Date: Mon, 27 Apr 1998 11:21:45 -0400 (EDT)
>To: klempau@obelix.sunflowers.de
>Cc: www-html@w3.org
>Cc: kaj@interbizz.se
>From: Rasmus Kaj <kaj@interbizz.se>
>Subject: Re: Absolute Font-size
>>>>>> "CK" =3D=3D Christoph Klempau <klempau@obelix.sunflowers.de> 
> CK> Is there a possibility to use absolute font-sizes that works in 
> CK> and IE?
> CK> Something like <font style=3D"Times New Roman" size=3D"12pt">????? 
>ut this
> CK> example doesn=B4t work in both browsers!
>The correct way (IMHO) would be to use CSS, i.e:
><span style=3D"font-family: Times New Roman; font-size: 12pt;">This is
>12pt Times</span>

Of course, you really shouldn't even be using the STYLE attribute 
(althought it works fine, and can be a useful hack in a pinch). You 
should either:

1) If this style is used only once, name your <SPAN> tag with the ID 
attribute, and specify a named style in the document-level stylesheet 
(in the document header)with the

SPAN#name {font-family: "Times New Roman", Times, serif; font-size: 


2) If this style will be used several times, specify a tag (preferably 
one more descriptive than <SPAN>) or class of tag as having this style. 
This would also be document-level.

Document-level (<STYLE>) and external (<LINK>) styles are almost 
_always_ preferred over inline styles (the STYLE attribute).

Incidentally, absolute font sizes are not encouraged. The classic 
example is a visually impaired user who has set a large default font 
size. Your absoulte size would override his/her preferences and render 
your document unreadable (unless the user uses the user-override feature 
of MSIE4 for Win32, in which case none of your formatting will do 
anything). You should probably stick with percentage sizes.

------------ "I am not a number! I am a free man!" ---------------
                                        - The Prisoner*
*or a USC student       <gwalla@planetall.com>

Get Your Private, Free Email at http://www.hotmail.com
Received on Monday, 27 April 1998 17:41:13 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:47 UTC