rayray1
04-14-2008, 10:29 PM
I am trying to create a 3-row-table with HEIGHT 100%, where row 1 and 3 should have a FIXED height (25px) !!, and row 2 a VARIABEL height, taking THE REMAINING x% of the page.
It works fine in Firefox. But unfortunately it does NOT work in IE.
WHY?????
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/strict.dtd">
<html style="height:100%" xmlns="http://www.w3.org/TR/xhtml1">
<head>
<title>layout</title>
</head>
<body style="height:100%">
<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>
It works fine in Firefox. But unfortunately it does NOT work in IE.
WHY?????
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/strict.dtd">
<html style="height:100%" xmlns="http://www.w3.org/TR/xhtml1">
<head>
<title>layout</title>
</head>
<body style="height:100%">
<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>