I'm new to CSS - but according to the W3C specs, font-size applies to all elements and is inherited (
If this is the case, how come my code does not observe font-size when I put it against the body tag ?
Any help with this very much appreciated,
Thanks
Nathan
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Thud!</title>
<style type="text/css">
<!--
body { font-family: Verdana, Arial, Helveta; font-size: 12px; }
h1 { font-size: 18px; font-weight: bold; }
td { vertical-align: top; }
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- parent table - everything goes in here -->
<table width="770" height="100%" border="1" cellpadding="0" cellspacing="0">
<!-- top bar rows -->
<tr>
<td height="150" width="33%">
Logo Here
</td>
<td width="33%">
QPoll Here
</td>
<td width="33%">
Q Cart
</td>
</tr>
<!-- end top bar rows -->
<!-- start content -->
<tr>
<td height="*" width="33%">
Navigation
</td>
<td width="66%" colspan="2">
<p>
<h1>Heading</h1>
main content
</p>
</td>
</tr>
<!-- end content -->
</table>
<!-- end parent table -->
</body>
</html>
If this is the case, how come my code does not observe font-size when I put it against the body tag ?
Any help with this very much appreciated,
Thanks
Nathan
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Thud!</title>
<style type="text/css">
<!--
body { font-family: Verdana, Arial, Helveta; font-size: 12px; }
h1 { font-size: 18px; font-weight: bold; }
td { vertical-align: top; }
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- parent table - everything goes in here -->
<table width="770" height="100%" border="1" cellpadding="0" cellspacing="0">
<!-- top bar rows -->
<tr>
<td height="150" width="33%">
Logo Here
</td>
<td width="33%">
QPoll Here
</td>
<td width="33%">
Q Cart
</td>
</tr>
<!-- end top bar rows -->
<!-- start content -->
<tr>
<td height="*" width="33%">
Navigation
</td>
<td width="66%" colspan="2">
<p>
<h1>Heading</h1>
main content
</p>
</td>
</tr>
<!-- end content -->
</table>
<!-- end parent table -->
</body>
</html>