Michael B Allen wrote:
> Why does IE 6 display font-size: medium larger than the default font?
> I thought "medium" was the default.
>
>   http://www.ioplex.com/~miallen/p1.html
>   


Probably because the construction is not valid markup.

Best practice (see fbelow) is to wrap the text in a p, assign default to 
the body (I've used 100%), and let the p inherit default (100%). 
Validate. Check it cross browser.


<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta name="generator"
content="HTML Tidy for Linux/x86 (vers 1st November 2002), see 
www.w3.org" />
<meta http-equiv="content-type"
content="text/html; charset=utf-8" />
<title>2c</title>
<style type="text/css">
html, body {
background-color : #fff;
color : #000;
margin : 0;
padding : 0;
}
body {
font : 100% georgia, serif;
}
p {margin: 0;}
</style>
</head>
<body>
<div>
<p>This is some text.</p>
</div>
</body>
</html>

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to