Web Hosting Talk







View Full Version : height=100%


yegorpb
07-17-2005, 08:24 PM
Im having trouble getting this to work. I have on table, which has variable height, and I wish to have another table inside that table that is 100% of that height, but I can never get this to work.

<table height="variable">
<tr>
<td>

<table height="100%">
<tr>
<td>blah</td>
</tr>
</table>

</td>
</tr>
</table>

It never matches the outer table, it acts like I didn't even include the height parameter. :confused:

Marble
07-17-2005, 10:16 PM
http://www.w3schools.com/tags/tag_table.asp

http://www.w3schools.com/tags/tag_table.asp

Notice how there is no height attribute on the table... I think IE will let you get away with the height attribute depending on the DOCTYPE...

yegorpb
07-18-2005, 01:04 AM
So there is no way I could do this?

Marble
07-18-2005, 01:17 AM
http://www.w3schools.com/tags/tag_td.asp

Notice its in the < td > tag... but as is stated, use styles instead.

http://www.w3schools.com/css/css_reference.asp#dimension

Kenotr
07-18-2005, 01:40 AM
That will work but your page need not to be a standard. Which means you don't insert a doctype.

Or use html 4.0 something doctype, I've never tried that before so I don't know if it will work or not.