[plug] Web Browser Visualisation
Cameron Patrick
cameron at patrick.wattle.id.au
Fri Jul 9 05:17:05 WST 2004
Craig Ringer wrote:
> fonts at the same size), but it seems far from perfect. Websites
> specifying font sizes in px (!!) don't help.
They do that to kludge around different operating systems using
different values for the screen DPI (which invariably have little to
no correlation with the actual screen DPI) making specifying font sizes
in points difficult. [In fact, specifying font sizes in points is bad
anyway as it won't respect the browser settings for your default font
size (not that IE actually /has/ such a setting). The best way to do
it is to give a size relative to the default size; this of course will
tickle bugs in IE.]
The CSS spec actually recommends scaling px'es relative to a reference
pixel of "one pixel on a device with a pixel density of 90dpi and a
distance from the reader of an arms length" if your display resolution
is unusually high or low. (http://www.w3.org/TR/CSS1#length-units)
Cameron.
More information about the plug
mailing list