Forum Moderators: not2easy
What I understood to be a standards way of implementing the CSS, the visual results appear to be totally different in IE6 and Firefox 0.9.3
For example using the sample code below, the text looks much bigger in IE6
<html>
<head>
<style>
p {
font-family: Arial;
font-size: small;
}
</style>
</head>
<body><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
</body>
</html>
Does anybody else use the font keywords to style their text? and if so do you have the same problem and does anybody have any advice on how to use them so that they render the same in all modern browsers.
Thanks in advance.
Paul,
#content {font: normal 80% arial, sans-serif;}
* html #content {font: normal 70% arial, sans-serif;}
firefox/moz will see the first version and IE will see the second.
Khem
The code below now renders the same in both browsers, so I think keywords are the way to go for me.
I was surprised that not including the doctype created such a difference, oh well you learn something new every day :-)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<style>
p {
font-family: Arial;
font-size: small;
}
</style>
</head>
<body> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
</body>
</html>