[thelist] css units

MarsHall evolt at marsorange.com
Fri Oct 25 14:51:01 CDT 2002

On Friday, October 25, 2002, at 02:09 PM, John Snavely wrote:
> What's the standards-friendly way of sizing fonts?
> em, ex or px or pt or "small"?

px -- pixels are best for *absolute* size control (some browsers (IE 5
Windows) won't allow the user to resize the px-sized text, so don't set
it below 10px)

em and pt -- these relative units are the most logical and accessible,
but be careful not to set sizes in these units to be very small (less
than 0.9em or 10pt)... that results in microscopic, unreadable text in
some browsers, but can be easily resized with the text zoom in the vast
majority of browsers _if_the_user_knows_how_; these units are also best
for printer style sheets

keywords i.e. "small" -- okay for general text sizing, but don't use
anything smaller than "small" for the same reason as em and pt above

Mars :)

More information about the thelist mailing list