Hallo Leute,
ich habe (mal wieder) ein Problem: Habe eine Seite mit einigen Schwierigkeiten aufgebaut und wollte nun ganz einfach einen Footer unten dran setzen, aber nixda, der footer erscheint unter dem header. Leider soll die Seite dynamisch werden und ich kann somit wahrscheinlich eher weniger mit margin-top und co. arbeiten.
Hier die codes:
da ich nciht weiß wo dier fehler ist, steht da bissl viel code...
Helft mir bitte
Felix
ich habe (mal wieder) ein Problem: Habe eine Seite mit einigen Schwierigkeiten aufgebaut und wollte nun ganz einfach einen Footer unten dran setzen, aber nixda, der footer erscheint unter dem header. Leider soll die Seite dynamisch werden und ich kann somit wahrscheinlich eher weniger mit margin-top und co. arbeiten.
Hier die codes:
HTML:
<body>
<div class="main">
<div style="width:150px;height:60px;float:left;"> LOGO </div>
<div class="buttons"><a href="vorschlaege.php"><p class="buttons_text1">Hausvorschläge</p></a></div>
<div class="spaces"> </div>
<div class="buttons"><a href="entstehung.php"><p class="buttons_text2">Entstehung eines Hauses</p></a></div>
<div class="spaces"> </div>
<div class="buttons"><a href="bauplaetze.php"><p class="buttons_text2">Aktuelle Bauplätze</p></a></div>
<div class="spaces"> </div>
<div class="buttons"><a href="bvs.php"><p class="buttons_text2">Aktuelle Bauvorhaben</p></a></div>
<div class="spaces"> </div>
<div class="buttons"><a href="energiesparpass.php"><p class="buttons_text1">Energiesparpass</p></a></div>
<div style="clear:left;"> </div>
</div>
<div class="head"><img style="margin-top:16px;margin-left:-160px;" src="spruchbilder/arnold_beckert_PERSIEN.jpg" />
<div class="content">
<!--INHALT-->
<h1>Hausvorschläge</h1><br />
test<br /><br /><br />
<!--INHALT-Ende-->
<img style="position: absolute;left: 50%;margin-top: 0px;margin-left: -409px;" src="contend-end.png" />
</div>
</div>
<div class="footer">
Test Test
</div>
</body>
Code:
body {
background-image:url(background_main.jpg);
font-family:Verdana,sans-serif,Arial;
color:white;
font-size:small;
text-align:center;
}
a {
color:white;
}
h1 {
color:black;
font-size:1.03em;
}
h1:first-letter {
color:#db841d;
font-weight:900;
font-size:1.07em;
}
.main {
width:1024px;
text-align: left;
margin: 0 auto;
font-weight:bold;
}
.buttons {
width:130px;
height:60px;
background-image:url(background_buttons.gif);
float:left;
text-align:center;
}
.buttons:hover {
text-decoration:underline;
}
.buttons_text1 {
margin-top:25px;
}
.buttons_text2 {
margin-top:17px;
}
.spaces {
width:6px;
height:60px;
background-image:url(background_spaces.png);
float:left;
}
.head {
background-image:url(orange_head.jpg);
height:297px;
width:100%;
background-repeat:repeat-x;
position:absolute;
left:0px;
}
.content {
background-color:#feead0;
width:813px;
height:auto;
position: absolute;
left: 50%;
margin-top: -5px;
margin-left: -490px;
color:black;
text-align:left;
padding-left:5px;
}
.footer {
width:818px;
height:auto;
position: absolute;
left: 50%;
margin-left: -490px;
color:white;
text-align:center;
}
da ich nciht weiß wo dier fehler ist, steht da bissl viel code...
Helft mir bitte
Felix