Hi,
Well as you are using the old method of tables for layout then I guess Ie6 would probably like the old doctype also.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
That will fix the page straight away but leave you in quirks mode which is not advisable.
If you want to move away from tables then the FAQ on 100% height (and the one on putting a footer at the bottom) explains how to do this without using tables. There are also examples in the 3 col sticky thread at the top of the forum.
If you must use tables then the only way I know of doing something like this in IE6 in standards mode is to use the same method that I used for the footer technique and relies on having a fixed height header and footer.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
* {
margin:0;
padding:0;
}
html, body {height:100%;}
body {font-family:arial, helvetica, sans-serif;}
#header {
background:green;
height:100px;
position:relative;
z-index:999;
text-align:center;
border-bottom:1px solid #000;
}
#outer {
border-collapse:collapse;
table-layout:fixed;
width:100%;
height:100%;
margin:-101px 0 -61px;
padding:0;
}
#outer td {
padding:101px 8px 61px;
vertical-align:top;
}
#outer .left {
width:100px;
background-color:red;
border-right:1px solid #000;
}
#outer .center {
background:#cdc;
}
#outer .right {
width:100px;
background:red;
border-left:1px solid #000;
}
#footer {
border-top:1px solid #000;
background:green;
color:#ff;
height:60px;
text-align:center;
}
</style>
</head>
<body>
<div id="header">Header</div>
<table id="outer">
<tr>
<td class="left">Left</td>
<td class="center">Centre</td>
<td class="right"> Right</td>
</tr>
</table>
<div id="footer">Footer</div>
</body>
</html>
However its a long time since I've played around with tables so there may be other ways of doing this
Bookmarks