hab diesen Code für ein 4 spalten layout erstellt
jetzt interessiert mich was ihr davon hält
- würdet ihr es auch so machen
- macht das jemand mit position absolut
HTML
HTML
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="design.css" />
</head>
<body>
<div id="cont">
<div id="_1">erste box</div>
<div id="_2">vierte box</div>
<div id="_3">dritte box</div>
<div id="_4">zweite box</div>
</div>
</body>
</html>
Alles anzeigen
CSS
Code
#cont {
width:800px;
}
#_1 {
width:200px;
height:200px;
background-color:red;
float:left
}
#_2 {
width:200px;
height:200px;
background-color:yellow;
float:right;
}
#_3 {
width:200px;
height:200px;
background-color:green;
float:right;
}
#_4 {
margin-left:200px;
width:200px;
height:200px;
background-color:orange;
}
Alles anzeigen
Gruß