I am having trouble getting the table structure i want to use to work in VS2005 beta1.
Using the following style
Code:
<style type="text/css">
body{color:#000; background-color: #fff;}
table{
border-width: 0;
}
html, body{
height:100%;
margin: 0;
padding: 0;
}
.FullHeight{
height:100%;
margin: 0;
}
</style>
The following HTML code behaves differently in VS2005 as apposed to VS2003.
Code:
<table class="FullHeight" width="100%" border="1">
<tr valign="top">
<td height="100px">Header</td>
</tr>
<tr valign="top">
<td>Body</td>
</tr>
<tr valign="top">
<td height="50px">Footer</td>
</tr>
</table>
Basically I want a straight forward three row table with one cell in each, spanning the entire page.
The header should be 100px, footer 50px and the body to use the rest.
In VS2005 the height attribute seems to share what ever is not specified.
(Mentioned 150 below is 100 of header + 50 of footer)
So the header is approx 100 + ((the page height -150) / 3)
The body is approx (the page height -150) / 3
And the footer is approx 50 + ((the page height -150) / 3)
If I specify the body as absolute px then it works for that size but will not fill the page.
If I specify 100%, the entire table fills the (100% pageheight + 150)
It ignores the remainder wildcard(*) and behaves as if nothing there.
I gues this relates somehow to w3c doc types but this is beyond me.
Any help would be much appreciated.
======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================