J'ai aussi IE6.
J'ai fait un copié collé de la solution sans les tables, et je vois que la bande verte du "footer" est en dessous de la zone visible, qu'il faut scroller pour le voir. La zone orange a une hauteur qui est égale à toute la hauteur visible.
Le code que j'ai testé avec IE 6.0.2800.1106, SP1, est :
<!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>XHTML strict 1.0 positionnement</title>
<style type="text/css" />
html, body {
height: 100%;
margin: 0;
}
#global {
width: 750px;
margin: auto;
height:100%;
background-color:#3399FF;
}
#header {
width: 750px;
height: 150px;
background-color:#CC0000;
}
#menu {
height:80px;
width: 750px;
background-color: #ffff00;
}
#corps {
width: 750px;
height: 100%;
background-color:#FF6633;
}
#footer {
width: 750px;
height: 30px;
background-color:#339933;
}
</style> </head>
<body>
<div id="global"> <div id="header">HEADER</div> <div id="menu">MENU</div> <div id="corps">CORPS</div> <div id="footer">FOOTER</div> </div>
</body> </html> |
Il y a le même problème avec mon Firefox dont la version est 1.0.7.