hi leute,
ich habe so einige Probleme mit dem Layout erstellen mittels DIV und CSS.
800 px breit -> geschafft
header und footer richtig anzeigen -> geschafft
navigation und content richtig anzeigen -> gescheitert
http://anime-naruto.dyndns.org/web/websites/private/
ich würde gerne auf absolute positionen verzichten .. weiß jemand WO mein problem liegt?
habe mir auch schon andere webseiten angeguckt (auch http://www.css4you.de/ )
ich habe so einige Probleme mit dem Layout erstellen mittels DIV und CSS.
800 px breit -> geschafft
header und footer richtig anzeigen -> geschafft
navigation und content richtig anzeigen -> gescheitert
Code:
<div id="container" align="center"> <div id="rahmen"> <div id="head">header</div> <div id="navi">navigation</div> <div id="content">content</div> <div id="foot">footer</div> </div> </div>
Code:
#container {
text-align:left;
width:800px;
margin:0px auto;
}
#rahmen {
border:1px #808080 solid;
margin:10px,10px,10px,10px;
}
#head {
padding:5px;
margin-top:12px;
border:1px #808080 solid;
background-color:#E8E8E8;
}
#foot {
padding:5px;
margin-bottom:12px;
border:1px #808080 solid;
background-color:#E8E8E8;
}
#navi {
width:100px;
float:left;
border:1px #808080 solid;
background-color:#E8E8E8;
}
#content {
float:right;
margin-left:120px;
border:1px #808080 solid;
background-color:#E8E8E8;
}
Code:
-------------------------------------------------------------------------- | | | -------------------------------------------------------------------- | | | HEADER | | | -------------------------------------------------------------------- | | | | -------- --------------------------------------------------------- | | | navi | | content | | | | | | | | | | | | | | | | | | | | | -------- --------------------------------------------------------- | | | | -------------------------------------------------------------------- | | | footer | | | -------------------------------------------------------------------- | | | --------------------------------------------------------------------------
habe mir auch schon andere webseiten angeguckt (auch http://www.css4you.de/ )



Comment