On Mon, 14 Feb 2005 20:11:56 GMT, in
comp.infosystems.
www.authoring.stylesheets no*********@nowhere.com
wrote:
| While on the subject, what is the default browser setting for
| font-size, and what is the recommended way of setting
| font-size in CSS design? I've seen lots of debate about this
| according to which book or article you read. Most advise to
| use pixels, but then some suggest percentages. So it would
| seem the best solution would be to start with a default setting
| and base the design on that, using pixels; but what is the
| default? And while we're at it, what is considered the default
| resolution, or the resolution of choice from a design point of view?
Try this:
<html>
<head>
<style type="text/css">
..pixels {font-size: 8pt; }
..pct {font-size: 150%; }
</style>
</head>
<body>
<P>Standard Font<BR>Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Vestibulum nisl leo, faucibus varius, venenatis quis,
faucibus non, pede.</P>
<P class="pixels">Standard Font + Pixel Class<BR>Lorem ipsum dolor sit
amet, consectetuer adipiscing elit. Vestibulum nisl leo, faucibus
varius, venenatis quis, faucibus non, pede.</P>
<P class="pct">Standard Font + Percentage Class<BR>Lorem ipsum dolor
sit amet, consectetuer adipiscing elit. Vestibulum nisl leo, faucibus
varius, venenatis quis, faucibus non, pede.</P>
</body>
</html>
In your browser change the default font size. Note what happens to the
first and last lines of text. The second line will not adjust.
---------------------------------------------------------------
jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------