Hi everyone,
I'm sure this gets asked a lot in different flavors, but I'm either
doing something wrong or this just won't work.
I'm trying to create a table that's the height of the browser viewport.
I wrote a test page like so:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
</head>
<body style="height:100%; margin: 0; padding: 0">
<table style="height:100%" border=1>
<tr>
<td style="height:50px">1</td>
</tr>
<tr>
<td style="height:50px">2</td>
</tr>
<tr>
<td style="height:auto">3</td>
</tr>
</table>
</body>
</html>
What I was hoping for is that cell 1 and 2 is 50px high, leaving the
third row/cell to fill the remainer. However, this doesn't happen.
Is there a way to accomplish what I'm looking to do? (I may need to
ditch the table altogether). In my case I have a header that's
100pixels high, and a footer that's 50pixels, that I'm trying to line
up with the top and bottom of the window.
Thanks!
Steve