Forum Moderators: open

Message Too Old, No Replies

Full browser window height tables

Can't quite figure it out

         

eman

6:23 pm on Jul 20, 2005 (gmt 0)

10+ Year Member



I'm familiar with HTML and some CSS, but this shouldn't require CSS anyway. All I want to do is make a table stretch the heigth of the browser, that's all.

Here's what I've got.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<body bgcolor=#FFFFFF>
<table height="100%" width="100%" border="1" cellpadding="0" cellspacing="0">
<tr><td height="100%" align="center">hello world!
</td></tr></table>
</body>
</html>

You would think that would take care of it, but somehow the table is only big tall enough to accomodate the text...and that's it. It's width spans the width of the browser, but not the height.

This always seems to stump me, if anybody knows what to do, I'd appreciate it.

BetterSEO

6:44 pm on Jul 20, 2005 (gmt 0)

10+ Year Member



Take out the doctype and it will work. Sadly, height is not a valid attribute for a table.