Versuche eine Homepage div’s auf die ganze Bildschirmlänge zu kiegen. Wenn der Text nicht die ganze Bildschirmhöhe füllt sollte automatisch bis zum unteren Bildschirmrand aufgefüllt werden.
Wenn ich html auf height:100% setze scheint es zwar zu funtkionieren jedoch bleibt das #mainnavi an ort und stelle stehen bei scrollen längerer seiten. Dieses sollte fixiert sein und sich mit dem rest der seite bewegen. Zum anderen wird die Farbe im div#container nicht bis ganz unten angezeigt.
Evtl. kann mir ja hier jemand weiterhelfen?
Vielen Dank im Voraus für euer Feedback
Michael Oppliger
Momentan sieht mein style.css so aus:
html,body{margin:0;padding:0;color: #002262; overflow-y:scroll; background-image:url(Bilder_neu/Background_Seite.jpg);height:auto;}
body{font: 76% arial,sans-serif;text-align:center; height:100%};
p{margin:0 10px 10px}
div#header{}
div#header h1{height:80px;line-height:80px;margin:0;padding-left:10px;}
div#container{text-align:left;background-image: url(Bilder_neu/Background.jpg);background-color:#A9C4E2; background-repeat:no-repeat;position:arelative;width:1024px;margin:0 auto; height:auto; height:100%; min-height:100%;}
div#content p{line-height:1.4;}
div#footer{width:1024px; clear:both;background-color:#A9C4E2;}
div#footer p{margin:0;padding:5px 10px;}
div#content{float:right;width:700px;padding:1em 1em 5em;}
div#extra{
float:right;
width:200px;
padding-right: 20px;
}
#mainnavi {
list-style: none;
margin: 0;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
font-weight: bold;
font-variant: normal;
color: #002262;
border-right: none;
border-left: none;
border-bottom: none;
border-top: none;
bgcolor:#b6dcee;
position:absolute;
top: 70px;
width: 230px;
}