
Originally Posted by
boogyman
for future reference, when you are posting computer code please use
[code
][/code
] tags as referenced in #8 of our
Posting Policies and Regulations. there is a set format for this type of writing that makes it easier for those whom browse and try to help out can read easier. Thanks
try using a HTML 4.01 Strict. The transitional DOCTYPE was developed for when CSS was being introduced nearly over a decade ago. also, IE does not support XHTML therefore you are parsing the page as invalid HTML. two factors that could be the reason why your page isnt displaying properly.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>layout</title>
</head>
<body>
<table style="width:100%;height:100%; table-layout: fixed;">
<tr style="height: 20px; ">
<td>
Top (This row is supposed to be of FIXED 25px height)
</td>
</tr>
<tr>
<td style="background-color: blue;">
Middle (This row is supposed to fill the ramining x% of the page!)
</td>
</tr>
<tr style="height: 20px; background-color:red;">
<td>
Top (This row is supposed to be of FIXED 25px height)
</td>
</tr>
</table>
</body>
</html>
Bookmarks