ich habe ein großes CSS Problem bei einem Grundgerüst einer Homepage aus Div's. Ich habe es am Anfang eigentlich wunderbar hinbekommen, aber erst als ich es im IE6 getestet habe und es daraufhin neu machen musste (-.-*), führte das zu meinem Problem:
Klick
Der div mit der ID Body geht über die 100% des Bildschirms. Es wird einfach die Höhe des Menü + Housepic Divs hinzuaddiert.
Die Höhe soll sich immer der Bildschirmhöhe anpassen. Hab schon wahnsinnig viel probiert, aber komme nicht dahinter.
Das einfachste wäre:
#body{position:absolute;width:100%;bottom:0px;top:0px;left:0px;overflow:auto;}
aber das geht natürlich nicht =(.
Hoffe jemand kann mir helfen..
lg Daki<html>
<head>
<style type="text/css">
body{margin:0px;}
#ebene{position:relative;width:900px;height:100%;margin:auto;}
#sideleft{position:absolute;width:20px;height:100%;top:0px;left:-20px;background-color:green}
#sideright{position:absolute;width:20px;height:100%;top:0px;right:-20px;background-color:green}
#housepic{position:relative;width:100%;height:150px;top:0px;left:0px;background-color:darkgreen}
#menu{position:relative;width:100%;height:22px;top:0px;left:0px;z-index:1;text-align:center;background-color:red}
#body{position:relative;width:100%;height:100%;bottom:0px;left:0px;overflow:auto;background-color:lightgreen}
#info{position:absolute;width:150px;height:100%;top:0px;left:0px;text-align:left;padding-left:2px;font-size:13px;overflow:auto;z-index:2;font-family:Verdana; font-size:11px;background-color:yellow}
#bodycontent{position:absolute;width:748px;height:100%;bottom:20px;right:0px;padding-bottom:20px;padding-top:10px;overflow:auto;background:white;font-family:Verdana; font-size:13px;background-color:blue}
#last{position:absolute;width:748px;height:21px;bottom:-1px;right:0px;font-size:12px;color:grey;font-family:Verdana;font-size:10px;background-color:orange;}
</style>
</head>
<body>
<div style="text-align:center;height:100%;">
<div id="ebene">
<div id="housepic">
</div>
<div id="sideleft">
</div>
<div id="sideright">
</div>
<div id="menu">
</div>
<div id="body">
<div id="info">
</div>
<div id="bodycontent">
</div>
<div id="last">
</div>
</div>
</div>
</div>
</body>
</html>