This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > September 2004 > Table not filling screen
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Table not filling screen
|
|
|
| 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:
*************************************************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<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:
*************************************************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<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.
| |
| Peadge 2004-09-29, 11:15 pm |
| try this in your body tag:
"tshad" <tscheiderich@ftsolutions.com> wrote in message
news:6Di6d.2425$JG2.186@newssvr14.news.prodigy.com...
> 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:
>
> *************************************************************
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <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:
> *************************************************************
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <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.
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|