Sent by Chris Heilmann on 4 November 2003 08:08
>I have always specified pixels for my fonts but I see that a lot of people
>specify percentages these days, FOR INSTANCE:
>
>
>I just wondered if one was better than the other?
>
>
>
Hello and welcome to the endless discussion about font sizing in CSS.
This problem has been
discussed to death on webdesign-L and here already, and guess what?
There is no better or
worse.
Accessibility gurus tell you that the font has to be resizable, which
makes sense, as people
with bad eyesight might just want to resize the font.
Designers want to ensure that the font in HTML is as big as the font in
the Illustrator design.
Now, browsers are odd animals, and the oddest is IE. Most browsers
support resizing of pixels,
(Opera even zooms the whole document, including the graphics), IE
doesn't. That is why
people started offering style switchers to switch to a bigger font.
Keywords, EMs and Percentages are supported differently by various
browsers, and the
DPI setting of the Operating System (72 vs 96) also can result in your
nice font size looking
unreadable on another platform or just too big.
Many an article has been written about this, check the archives of
alistapart.com and evolt.org,
or even better, go and buy zeldman's book, where the whole dilemma is
explained in painful
details.
Personally, I use percentages, and make sure not to define them in each
element, as nested
elements will render the percentage size as a percentage of the parent
element...
HTH
Chris
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/