Hallo,
Ne kurze Verständnisfrage:
Ich habe zb ne Mnüleiste absolut auf der Seite zentriert, diese hat ne vorgegebene Höhe. Dann kommt das div "inhalt" welches gleich wie der Menübalken absolut zentriert ist, aber keine feste Höhe hat, da diese sich ändert.
Dann kommt der footer, der sollte natürlich immer direkt nach dem div inhalt angezeigt werden. Tut er aber nicht. Er befindet sich etwa in der Mitte des dev inhalt.
Mein css schaut etwa so aus:
Code:
#menubalken {
background: url(images/menu_repeader.png) repeat-x top;
width: 800px;
position: absolute;
z-index: 2;
left: 50%;
margin-left: -400px;
top: 191px;
height: 34px;
padding: 0px 0px 0px 10px;
}
#inhalt {
background: url(images/bg.png) repeat;
line-height: 18px;
padding: 10px 0px 0px 10px;
width: 796px;
position: absolute;
left: 50%;
top: 225px;
z-index: 1;
margin-left: -400px;
border-left: solid;
border-right: solid;
border-width: 2px;
border-color: #ffff00;
}
#footer{
background: url(images/footer.jpg) repeat-x;
line-height: 18px;
position: absolute;
left: 50%;
z-index: 3;
margin-left: -400px;
width: 796px;
height: 45px;
padding: 0px 0px 0px 10px;
border-left: solid;
border-right: solid;
border-width: 2px;
border-color: #ffff00;
}
Wie bekomme ich den footer dort hin wo er sein sollte?
LG und schönen Tag,
Michi