I have table that will not work in DW 2004 if I take the New file setup that DW gives me.
Here is what the basic page looks like:
I take this and create a page like so:
This should just fill the screen with Blue.
There is more to this page than this, I am just trying to demonstrate the problem. I want this table to fill the screen - no matter how big the screen is (this is why the height="100%"). This would normally be a couple of tables with buttons on the left, logo on top and logo on bottom with content in the middle/right.
This code is not working correctly.
But it will if I take out the "<!DOCTYPE " line. This works fine now.
Why is this happening and why is DW adding the line anyways?
Thanks,
Tom.
Here is what the basic page looks like:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
I take this and create a page like so:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body {margin:0;padding:0;}
</style>
</head>
<body>
<table width="100%" height="100%" border="1" cellspacing="0" cellpadding="0">
<tr height="100" bgcolor="#000099">
<td> </td>
</tr>
</table>
</body>
</html>
This should just fill the screen with Blue.
There is more to this page than this, I am just trying to demonstrate the problem. I want this table to fill the screen - no matter how big the screen is (this is why the height="100%"). This would normally be a couple of tables with buttons on the left, logo on top and logo on bottom with content in the middle/right.
This code is not working correctly.
But it will if I take out the "<!DOCTYPE " line. This works fine now.
Why is this happening and why is DW adding the line anyways?
Thanks,
Tom.