Forum Moderators: open
Thanks.
i tried this:
<table width="100px" height="100%" cellspacing="0">
<tr>
<td height="20ox" bgcolor="#3333FF">cell 1 </td>
</tr>
<tr>
<td height="20px" bgcolor="#990066">cell 2 </td>
</tr>
<tr>
<td height="100%" bgcolor="#CC3366">cell 3 </td>
</tr>
</table>
Dreamweaver seems to think it works, but it doesn't in browsers.
height="20px"
When you specify a pixel value in an HTML attribute, don't use any units (ie. 'px', or even 'ox'?!). You only use 'px' in CSS.
Should read:
height="20"
Although this might work in real world browsers, it is worth bearing in mind that it's not standards compliant, as there is no height attribute on TD elements, only on the TABLE element.
Div setup would be pretty straightforward... have a container div with height:100%, then two more divs with a fixed height inside the container div. The third section will just be the remainder of the container div.