Thomas_Jung
Erfahrenes Mitglied
Hallo
Folgender Code funktioniert perfekt im Firefox.
Könnte mir jemand behilflich sein das er auch in IE 6, 7 funktioniert
Gruß Thomas
Folgender Code funktioniert perfekt im Firefox.
Könnte mir jemand behilflich sein das er auch in IE 6, 7 funktioniert
Gruß Thomas
HTML:
<html>
<head>
<title></title>
<style type="text/css">
<!--
body {height:100%; max-height:100%; padding:0; margin:0; border:0;}
#header {position: fixed; top: 0; right: 0; left: 0; width:100%; height: 30px;}
#head {position: relative; top: 0; right: 0; bottom: 0; left: 0; height: 100%; background: #003366;}
#main {padding: 10px 0px 40px 0px;}
#footer {position: fixed; bottom: 0; right: 0; left: 0; width:100%; height: 30px;}
#foot {position: relative; top: 0; right: 0; bottom: 0; left: 0; height: 100%; background: #003366;}
-->
<!--[if IE]>
@media screen {
html, body {
height: 100%; overflow: hidden;
}
#main {
height: 100%; width: 100%; overflow: auto;
}
#footer,#header {
position: static;
}
}
</style><![endif]-->
</style>
</head>
<body>
<div id="header">
<div id="head">
Text a
</div>
</div>
<div id="main">
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
Text b <br><br>
</div>
<div id="footer">
<div id="foot">
Text c
</div>
</div>
</body>
</html>