Forum Moderators: not2easy
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!--
<link rel="stylesheet" type="text/css" href="table.css">
-->
<style type="text/css">
* {
margin: 0px;
padding: 0px;
}
html, body {
height: 100%;
}
div#tbl {
padding: 0px 5px;
position: absolute;
left: 10%;
top: 10%;
right: 10%;
bottom: 10%;
background-color: yellow;
}
table {
border-spacing: 0px;
height: 100%;
width: 100%;
}
td, td div {
width: 100%;
vertical-align:top;
}
td#td1 {
height: 85px;
}
td#td1 div {
height: 85px;
background-color: red;
}
td#td2 {
height: 100%;
}
td#td2 div {
height: 100%;
background-color: blue;
}
td#td3 {
height: 0;
}
td#td3 div {
height: 0;
background-color: green;
}
</style>
<!--[if IE]>
<style type="text/css">
td#td2 div {height: auto;}
td#td1 div {
position:relative;
z-index:2;
}
td#td2:after {
position:absolute;
content:" ";
bottom:0;
top:0;
left:5px;
right:5px;
width:auto;
background-color: blue;
z-index:1;
}
</style>
<![endif]-->
</head>
<body>
<div id="tbl" valign="top">
<table>
<tr id="tr1">
<td id="td1"><div>First row</div></td>
</tr>
<tr id="tr2">
<td id="td2"><div>Second Row</div></td>
</tr>
<tr id="tr3">
<td id="td3"><div></div></td>
</tr>
</table>
</div>
</body>
</html>
I do not want to use the quirks mode.
<meta http-equiv="X-UA-Compatible" content="IE=edge" />