W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > April to June 2000

Re: Specifying font sizes in stylesheets

From: Charles McCathieNevile <charles@w3.org>
Date: Mon, 12 Jun 2000 04:43:40 -0400 (EDT)
To: Sarah Kuehnle <sarah@kuehnle.com>
cc: w3c-wai-ig <w3c-wai-ig@w3.org>
Message-ID: <Pine.LNX.4.20.0006120441250.15563-100000@tux.w3.org>
I would suggest using em, or percentage, rather than points, pixels, or other
measures of size. However, you should be aware that there are some bugs in
old implementations, and some size declarations will not be captured. More
importantly, the actual rendered size of a 9pt font varies tremendously
across platforms - what may look fine on Macintosh may be enormous on Windows
and unreadably small on linux, for example. In general, therefore, I would
suggest staying away from specifying font sizes where possible.

Cheers

Charles McCN

On Sun, 11 Jun 2000, Sarah Kuehnle wrote:

  I just launched a new version of my website and have several emails
  commenting on font size. I specified the font size in my stylesheet as 9 pt.
  As I'm sure many of you know, when trying to change that size using the
  browser (through View --> Text Size), the user is unable to change the size
  at all.
  
  url: http://www.thedesigngirl.com/
  
  My question is this: What is the best way to specify font sizes in a
  stylesheet so that the user is still able to adjust the size if necessary?
  Should I be using pts, ems, pixels, percentages? Or should I not specify
  size at all and just rely on user defaults?
  
  Thanks in advance,
  Sarah Kuehnle
  

--
Charles McCathieNevile    mailto:charles@w3.org    phone: +61 (0) 409 134 136
W3C Web Accessibility Initiative                      http://www.w3.org/WAI
Location: I-cubed, 110 Victoria Street, Carlton VIC 3053
Postal: GPO Box 2476V, Melbourne 3001,  Australia 
Received on Monday, 12 June 2000 04:43:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:13:49 GMT