Re: CSS article
by Andrew McFarland <aamcf(at)aamcf.co.uk>
|
Date: |
Thu, 20 Jun 2002 15:40:25 +0100 |
To: |
hwg-style(at)hwg.org |
In-Reply-To: |
hotmail |
|
todo: View
Thread,
Original
|
|
At 14:02 20/06/2002 +0000, Peter-Paul Koch wrote:
Is there something wrong with doing this? How should text
>>size be set? In ems?
>
>Pixels, always pixels. They are the only unit that causes the same font
>size on all operating systems.
EEEK!
Never set font sizes in pixels (unless you really have to have text an
exact size, which you almost never do on the web).
Pixel sized text is difficult for the user to resize , and does not cause
the same font size on all operating systems. (Think of 96dpi screens vs
72dpi, as well as very high resolution systems (print) and very low
(PDAs)).
Pixels are the least confusing for CSS authors, but the least convenient
for web page users.
On the web, body text should not be sized at all. Headings and footnotes
and the like should be sized using percentages or ems depending on your
mood.
Andrew
HWG hwg-style mailing list archives,
maintained by Webmasters @ IWA