Forum Moderators: open

Message Too Old, No Replies

height="100%" not working

table in table with height="100%" not working

         

spear

9:57 am on Apr 15, 2006 (gmt 0)

10+ Year Member



Hello,

I can not understand why the table with id=sub, don't accept the command height="100%" in this case:


<table width="100%" border="1" cellpadding="0" cellspacing="0" id="main">
<tr>
<td valign="top"><table width="100%" height="100%" border="1" cellpadding="0" cellspacing="0" id="sub">
<tr>
<td>&nbsp;</td>
</tr>
</table></td>
<td width="702" valign="top"><p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p></td>
</tr>
</table>

please help

chrisrock79

11:54 am on Apr 15, 2006 (gmt 0)

10+ Year Member



Because 'height' is not a valid attribute for 'table'.

spear

12:41 pm on Apr 15, 2006 (gmt 0)

10+ Year Member



I found the solution: table id=main have also height="100%".
Now the table id=sub accept the command height="100%" and all is ok.
But may be you can give me better method?

mizo

6:26 am on Apr 25, 2006 (gmt 0)

10+ Year Member



try

<table width="100%" border="1" cellpadding="0" cellspacing="0" id="main">
<tr>
<td valign="top" width="100%"><table width="100%" height="100%" border="1" cellpadding="0" cellspacing="0" id="sub">
<tr>
<td>&nbsp;</td>
</tr>
</table></td>
<td width="702" valign="top"><p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p></td>
</tr>
</table>