Forum Moderators: not2easy
If I give the table a CSS height without using a doctype it stretches to 100% high as desired:
<table style="height: 100%;">
As soon as I add the transitional doctype, it no longer stretches to 100% high. This is happening in Moz, Opera and IE.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Why is this happening? How do I make a table 100% high and have a doctype and keep it valid?
Why is this happening?
"height" is not a <table> attribute. Remember that table was not expected to be used for webpage layout design. It is simply the sum of all its rows and headers and captions.
"height" is a deprecated <td> attribute. But that is not likely much help.
[w3.org ]
Rambo Tribble, even though the attribute is supported I don't want to use it because it's not valid. And I doubt if the browsers are going into any strange mode because the page validates completely. But thanks for the suggestions anyway.