ellosfallos
Neues Mitglied
Hallo!
Hier der Code zu meinem Problem:
//CSS:
#container{
width:1000px;
margin-left:auto;
margin-right:auto;
}
#header{
position:absolute;
top:0px;
margin: 0px;
width:1000px;
height:50px;
}
#content{
position:absolute;
top:60px;
margin-left:100px;
width:800px;
}
#footer{
margin-left:100px;
width:800px;
height:50px;
}
//HTML:
<div id="container">
<div id="header">
Kopfzeile
</div>
<div id="content">
Inhalt
</div>
<div id="footer">
Fusszeile
</div>
</div>
Das Problem ist, dass der footer nicht unten ist, egal ob ich noch ein "top:" mit reinbringe oder ein "margin-top:".
Wie muss man es machen, damit der footer UNTER dem content erscheint aber immernoch im container ist (also beim
Browserfenster-Ziehen mitgeht)?
Für Ihre Hilfe würde ich mich sehr freuen! Vielen Dank schonmal,
mfG
Hier der Code zu meinem Problem:
//CSS:
#container{
width:1000px;
margin-left:auto;
margin-right:auto;
}
#header{
position:absolute;
top:0px;
margin: 0px;
width:1000px;
height:50px;
}
#content{
position:absolute;
top:60px;
margin-left:100px;
width:800px;
}
#footer{
margin-left:100px;
width:800px;
height:50px;
}
//HTML:
<div id="container">
<div id="header">
Kopfzeile
</div>
<div id="content">
Inhalt
</div>
<div id="footer">
Fusszeile
</div>
</div>
Das Problem ist, dass der footer nicht unten ist, egal ob ich noch ein "top:" mit reinbringe oder ein "margin-top:".
Wie muss man es machen, damit der footer UNTER dem content erscheint aber immernoch im container ist (also beim
Browserfenster-Ziehen mitgeht)?
Für Ihre Hilfe würde ich mich sehr freuen! Vielen Dank schonmal,
mfG