Paul Furman said:
I'm not following the debates in the CSS Question thread between using
px & pt. I've also seen +1 -1 used. Pt is presumably points which
doesn't mean anything to me, px is pixels which makes sense though I
don't know what the default is.
Can someone clarify the basics here...
The CSS spec defines four basic means of specifying font sizes.
1. Physical units (in, cm, mm, pt, pc - inch, centimeter, millimeter,
point = 1/72 inch, pica = 1/6 inch).
pros - familiar from print based media.
cons - not based on the user's chosen default. not really suited to
screen media.
2. Pixels (the CSS defines a pixel as an angular measure, but all
current browsers use screen pixels instead).
pros - precise control (but see below), well implemented across
browsers.
cons - not based on the user's chosen default. Can not be resized on
the fly by Windows IE users.
3. Keywords (a range from xx-small to xx-large).
pros - simple to use. based around the user's chosen default.
cons - no fine contral. IE has a bug whereby it thinks that small =
browser default (fixed in IE6 if the doctype used triggers Standards
Compliant mode).
4. Relative units/keywords (percentage, em, keywords 'smaller' and
'larger'; 1 em = the 'current' height of the font, so on the root
element 1em = user's chosen default).
pros - based on the user's chosen default.
cons - unpredicatable as the author can't know what the user has
chosen. Some browser bugs (IE with ems, older Opera with %). Need to
be used with care as the can multiply in nested elements, e.g. 60% *
60% = 36%!
PS I use Large Fonts on my 21" monitor at 1200x1600 pixels with windows
2000 so I probably have a warped perspective on all this.
This is the one thing that maks IE change the size of pixel sized
text. Your default font size is about 20 screen pixels opposed to the
standard 16 screen pixels (BTW various Mac browsers use 12, 14 or 16
pixels).
The font size settings inside IE itself have no effect on pixel sized
text which is one reason why some of us dislike them.
You will be seeing a different relationship between text (however
sized) and images than other people. On some sites the authors try to
enforce a set relationship for design reasons, this is the main reason
to use pixel sized text, and one of the core issues of the font size
debate is whether trying to enforce that relationship is a good or bad
thing.
Steve