ich versuche nun schon seit einigen Stunden raus zu finden, wieso der Text in einem div-Container nicht zentriert dargestellt wird.
Es handelt sich um den Text "Main-Content".
Hier sind HTML und CSS:
HTML:
- Code: Alles auswählen
<div id="spacer"></div>
<div id="content_container">
<div id="cont">
<p>MAIN-CONTENT</p>
</div>
<div id="cont_add">
<div id="vote">VOTING</div>
<div id="download">DOWNLOAD</div>
</div>
</div>
CSS:
- Code: Alles auswählen
body {
background-color:#000;
text-align:center;
height:1011px;
margin-top:4px;
margin-bottom:0px;
font-family:Verdana, Geneva, sans-serif;
font-style:normal;
font-size:13px;
}
div#spacer {
width:884px;
height:320px;
}
div#content_container {
border-style:solid;
margin:0 auto;
padding-left:10px;
width:1240px;
height:480px;
text-align:center;
}
div#cont {
border-style:solid;
border-color:#E00;
float:left;
width:880px;
height:480px;
text-align:center;
overflow:auto;
}
div#cont_add {
border-style:solid;
border-color:#519699;
clear:left;
float:right;
margin-top:-440px;
width:115px;
height:425px;
}
div#vote {
border-style:solid;
border-color:#EEE;
width:115px;
height:165px;
}
div#download {
border-style:solid;
border-color:#F3F;
margin-top:85px;
width:115px;
height:165px;
}
Hier könnt ihr die Seite online anschauen. Ich musste den Link etwas verunstalten, damit ich es posten kann, weil ich nicht berechtigt bin URLs zu linken.
l2-nocturne.de/website_Mai-2011/version2/
Die Seite ist jetzt quasi nur skizziert. Ich will damit einfach nur das wesentliche Problem darlegen.
Vielen Dank schon mal für eure Hilfe.
VG,
Linky
