I am studying ASP.net and am mystified by the behaviour of tables. I am on my way to learning CSS to control page layout, but want to do the examples in tables and CSS. In the code that follows, I am not sure why I cannot control the height of the rows. The table has 3 rows, the middle one with two colums. I want the first row to be 10% of the page, the second row 80% and the third row 10%. It looks OK in design view using VWD Express, but when rendered to the page, the 3 rows occupy about 10% of the page. Is there anyway to do this.
The risk with keeping an open mind is having your brains fall out.
Shaunk
Code:
<body>
<form id="form1" runat="server">
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; position: static; height:100%">
<tr>
<td colspan="2" style="height: 10%; background-color: beige"> This is the Header text</td> </tr>
<tr>
<td style="width: 20%; height: 80%;
background-color: azure">
this is a test</td>
<td style="width: 80%; background-color:gainsboro">so is this
</td>
</tr>
<tr>
<td colspan="2" style="height: 10%; background-color: paleturquoise">this is a copyright test ©
</td></tr>
</table>
<div>
</div>
</form>
</body>
The risk with keeping an open mind is having your brains fall out.
Shaunk