das würd ich dann
so machen
css-code:
Code:
.ebene1 {
width: 100px;
height: 200px;
margin-left: 20px;
float: left;
background-color: red;
}
.ebene2 {
width: 200px;
height: 200px;
margin-left: 20px;
float: left;
background-color: yellow;
}
.ebene3 {
width: 300px;
height: 200px;
margin-left: 20px;
float: left;
background-color: blue;
}
wenn sie die ebenen nicht wiederholen sollen, würd ich zu ids greifen, also statt .ebene1 -> #ebene1
einbindung in xhtml dann mit <div id="ebene1">ebene 1</div>
ist aber an sich geschmackssache, nur der code bleibt in meinen augen dann halt übersichtlicher
