HTML
<html>
<head>
<style>*{
margin: 0;
padding: 0;
}
#wrapper {
width: 900px;
height: 700px;
margin: 20px auto;
}
/*HEADER*/
#header{
width: 900px;
height: 150px;
background-color: #999;
}
#eins {
margin-top: 10px;
float: left;
width: 300px;
height: 100px;
background-color: blue;
}
#zwei {
margin-top: 10px;
float: left;
width: 300px;
height: 100px;
background-color: red;
}
#drei {
margin-top: 10px;
float: left;
width: 300px;
height: 100px;
background-color: black;
}
/*CONTENT*/
#content {
width: 900px;
height: 500px;
background-color: #707070;
}
#content_links{
float: left;
width: 400px;
height: 450px;
background-color: #fff;
border: 1px solid black;
}
#content_rechts{
float: right;
width: 400px;
height: 450px;
background-color: #fff;
border: 1px solid black;
}
#footer {
width: 900px;
height: 100px;
background-color: gray;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="eins"></div>
<div id="zwei"></div>
<div id="drei"></div>
</div>
<div id="content">
<div id="content_links"></div>
<div id="content_rechts"></div>
</div>
<div id="footer"></div>
</div>
</body>
</html>
Alles anzeigen
So ungefähr könnte das aussehen, was du bezweckst. Block-Elemente legen sich grundsätzlich untereinander und durch floaten kann man dem entgegenwirken. Inline-Elemente stehen immer nebeneinander.
Aber deinem Code-Gewusel entnehme ich, dass es dir ein wenig an den Grundlagen fehlt. Ich hoffe, ich konnte dir helfen.
Gruß. Petra ![]()