Hi guys,
I don't do much html stuff, but I have a hopefully simple question.
I have a simple table, with a defined border style:
Code:
<!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">
<head>
<title>Border Test</title>
</head>
<body>
<table width="100%" style="{border: 1px solid #000000}" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0">
<td>cell1</td>
<td>cell2</td>
</table>
</body>
</html>
On internet explorer, it draws the black border around the table.
But in firefox, it does not draw the border.
I found that if I comment out the "<!DOCTYPE" entry at the top, firefox does draw the border.
Can anyone explain why this is? Is there something I am missing that needs to be added once the XHTML doctype is included?
Thanks,
John