Forum Moderators: open
Any ideas? A stripped-down page and CSS are below. They both validate properly.
Page code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C/DTD XHTML 1.0 Transitional//EN/"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Title!</title>
<link rel="stylesheet" href="./inc/common.css" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#ffffff" width="750">
<tr bgcolor="#000000"> <!-- Top Black Spacer -->
<td bgcolor="#000000" width="10"><img src="./images/spacer.gif" alt="" width="10" height="10" border="0" /></td>
<td bgcolor="#000000" width="730"><img src="./images/spacer.gif" alt="" width="730" height="10" border="0" /></td>
<td bgcolor="#000000" width="10"><img src="./images/spacer.gif" alt="" width="10" height="10" border="0" /></td>
</tr>
<tr> <!-- Top White Spacer -->
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" /></td>
<td width="730"><img src="./images/spacer.gif" alt="" width="730" height="10" border="0" /></td>
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" /></td>
</tr>
<tr> <!-- Local Banner -->
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
<td width="730"><img src="./images/greyspacer.gif" alt="" width="730" height="50" border="0" /></td>
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
</tr>
<tr> <!-- Banner/Content Spacer -->
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
<td width="730"><img src="./images/spacer.gif" alt="" width="730" height="5" border="0" /></td>
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
</tr>
<tr> <!-- Main Content -->
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
<td width="730"><p>Nothing to see here... (yet)</p></td>
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
</tr>
<tr> <!-- Content/Banner Spacer -->
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
<td width="730"><img src="./images/spacer.gif" alt="" width="730" height="5" border="0" /></td>
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
</tr>
<tr> <!-- Bottom Banner -->
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
<td width="730"><img src="./images/greyspacer.gif" alt="" width="730" height="50" border="0" /></td>
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
</tr>
<tr> <!-- Bottom White Spacer -->
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" /></td>
<td width="730"><img src="./images/spacer.gif" alt="" width="730" height="10" /></td>
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" /></td>
</tr>
<tr bgcolor="#000000"> <!-- Bottom Black Spacer -->
<td bgcolor="#000000" width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" /></td>
<td bgcolor="#000000" width="730"><img src="./images/spacer.gif" alt="" width="730" height="10" /></td>
<td bgcolor="#000000" width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" /></td>
</tr>
</table>
</body>
</html>
Contents of common.css:
BODY {
MARGIN: 0px;
BACKGROUND-COLOR: #000000;
FONT-SIZE: 11px;
COLOR: #000000;
FONT-FAMILY: Arial, Helvetica, sans-serif;
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
Here is your code without the <p> tag and the doctypes changed so both browsers use strict mode. FF and IE render this identically. (without the extra space)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<title>Title!</title>
<link rel="stylesheet" href="./inc/common.css" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#ffffff" width="750">
<tr bgcolor="#000000"> <!-- Top Black Spacer -->
<td bgcolor="#000000" width="10"><img src="./images/spacer.gif" alt="" width="10" height="10" border="0" /></td>
<td bgcolor="#000000" width="730"><img src="./images/spacer.gif" alt="" width="730" height="10" border="0" /></td>
<td bgcolor="#000000" width="10"><img src="./images/spacer.gif" alt="" width="10" height="10" border="0" /></td>
</tr>
<tr> <!-- Top White Spacer -->
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" /></td>
<td width="730"><img src="./images/spacer.gif" alt="" width="730" height="10" border="0" /></td>
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" /></td>
</tr>
<tr> <!-- Local Banner -->
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
<td width="730"><img src="./images/greyspacer.gif" alt="" width="730" height="50" border="0" /></td>
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
</tr>
<tr> <!-- Banner/Content Spacer -->
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
<td width="730"><img src="./images/spacer.gif" alt="" width="730" height="5" border="0" /></td>
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
</tr>
<tr> <!-- Main Content -->
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
<td width="730">Nothing to see here... (yet)</td>
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
</tr>
<tr> <!-- Content/Banner Spacer -->
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
<td width="730"><img src="./images/spacer.gif" alt="" width="730" height="5" border="0" /></td>
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
</tr>
<tr> <!-- Bottom Banner -->
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
<td width="730"><img src="./images/greyspacer.gif" alt="" width="730" height="50" border="0" /></td>
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" border="0" /></td>
</tr>
<tr> <!-- Bottom White Spacer -->
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" /></td>
<td width="730"><img src="./images/spacer.gif" alt="" width="730" height="10" /></td>
<td width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" /></td>
</tr>
<tr bgcolor="#000000"> <!-- Bottom Black Spacer -->
<td bgcolor="#000000" width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" /></td>
<td bgcolor="#000000" width="730"><img src="./images/spacer.gif" alt="" width="730" height="10" /></td>
<td bgcolor="#000000" width="10"><img src="./images/spacer.gif" alt="" width="10" height="1" /></td>
</tr>
</table>
</body>
</html>
Is there anyplace that has a good reference for how to know what rendering mode a browser will be in at what time?
If you get the web developer extension for firefox, it will tell you whether the page is rendering in strict or quirks under firefox.
So it's quirks mode versus standards mode for rendering...
and strict DTD versus transitional DTD for mark-up
The two areas are certainly related, but not at all the same. For example, you can write transitional mark-up that is rendered in standards mode.