Hi Leute!
Ich hab letztens ein Css Design erstellt welches auch soweit funktioniert, jedoch passen sich die jeweiligen Content-Boxen nicht dem Inhalt an. Normal löst man so etwas ja mit clear, aber leider funktioniert das bei mir nichts so wie ich es möchte
Css:
Das ganze kann man hier noch mal im Browser betrachten.
Ich wäre über einen kleinen Denkanstoß sehr dankbar!
Ecology
Ich hab letztens ein Css Design erstellt welches auch soweit funktioniert, jedoch passen sich die jeweiligen Content-Boxen nicht dem Inhalt an. Normal löst man so etwas ja mit clear, aber leider funktioniert das bei mir nichts so wie ich es möchte

Code:
<div class="site">
<div class="head">
<div class="head_r"> </div>
<div class="head_m"></div>
<div class="head_l"> </div>
<div class="clean"></div>
</div>
<div class="content">
<div class="maincont">
<div class="mainbox">
<div class="mbh"></div>
<div class="mbc">Das hier ist das erste Problem Div</div>
</div>
</div>
<div class="rcont">
<div class="rbox1">
<div class="rbh1">
<div class="rbc1">Das hier ist das zweite Problem Div</div>
</div>
<div class="rbox2">
<div class="rbh2"></div>
<div class="rbc2">Das hier ist das dritte Problem Div</div>
</div>
</div>
</div>
<div class="footer">
<div class="foot_r"> </div>
<div class="foot_m"> </div>
<div class="foot_l"> </div>
</div>
</div>
Css:
Code:
body {
background-color:#999999;
}
.site {
width: 800px;
height:800px;
margin-top: 20px;
margin-bottom: 20px;
margin-right: auto;
margin-left: auto;
text-align:left;
}
.head {
width: 800px;
height:150px;
}
.head_r {
width: 15px;
height:150px;
float:left;
background-image:url(bilder/head_r.gif)
}
.head_m {
width: 770px;
height:150px;
float:left;
background-image:url(bilder/head_m.gif)
}
.head_l {
width: 15px;
height:150px;
float:left;
background-image:url(bilder/head_l.gif)
}
.content {
width: 800px;
height:595px;
background-color:#0099FF
}
.maincont {
width: 610px;
height:595px;
float:left
}
.mainbox {
width: 600px;
height:585px;
margin:5px;
border: 1px solid #666666;
float:left
}
.mbh {
width: 600px;
height:50px;
background-image:url(bilder/mbh.gif)
}
.mbc {
width: 580px;
height:515px;
background:repeat-x url(bilder/mbb.gif);
background-color:#ccc;
padding: 10px;
clear:both;
}
.rcont {
width: 180px;
height:595px;
float:left
}
.rbox1 {
margin-top:5px;
width: 180px;
height:298px;
border: 1px solid #339900;
}
.rbh1 {
width: 180px;
height:50px;
background-image:url(bilder/rbh1.gif)
}
.rbc1 {
width: 160px;
height:228px;
background:repeat-x url(bilder/mbb.gif);
background-color:#ccc;
padding: 10px;
}
.rbox2 {
margin-top:5px;
width: 180px;
height:280px;
border: 1px solid #cc00cc;
}
.rbh2 {
width: 180px;
height:50px;
background-image:url(bilder/rbh2.gif)
}
.rbc2 {
width: 160px;
height:210px;
background:repeat-x url(bilder/mbb.gif);
background-color:#ccc;
padding: 10px;
}
.footer {
width: 800px;
height: 55px;
}
.foot_r {
width: 15px;
height: 55px;
float:left;
background-image:url(bilder/foot_r.gif)
}
.foot_m {
width: 770px;
height:55px;
float:left;
background-image:url(bilder/foot_m.gif)
}
.foot_l {
width: 15px;
height: 55px;
float:left;
background-image:url(bilder/foot_l.gif)
}
Das ganze kann man hier noch mal im Browser betrachten.
Ich wäre über einen kleinen Denkanstoß sehr dankbar!
Ecology