Har ett forumet där jag loopar ut svaren i divvar, divven som svaret ligger i har problem med att om det används en bild så glider den utanför sin egna div och över nästkommande, vilken inte är så bra.
Vill att bilden ska få divven att sträcka på sig.
Men jag får inte till detta. Någon som har nåt bra tips?
Koden:
<div style="background-color: #d3e3bc; min-height:300px; margin-left: 20px; width: 835px; float: left; margin-top: 20px;">
<div align="center" style="background-image: url(_themes/img/forum/forum_green_bar.gif); height:24px; color: #FFFFFF;">
<div style="padding-top: 3px;">
<font style="font-size:140%; font-weight: bold; margin-left: 10px;"><b>Svar</b></font>
</div>
</div>
<div>
<!-- Loop här -->
<div style="background-color: #dbe5cd; border-bottom: #cccccc 2px solid; height: 300px; min-height: 300px;">
<div style="width: 20%; float: left; background-color: #dbe5cd; height: 100%;">
<div style="padding: 10px;">
<div style="margin-top: 10px; margin-left: 10px;">
</div>
<div style="margin-top: 10px; margin-left: 10px;">
</div>
<div style="margin-top: 10px; margin-left: 10px; font-size: 13px;">
</div>
<div style="margin-top: 2px; margin-left: 10px; font-size: 13px;">
</div>
</div>
</div>
<div style="width: 80%; float: right; background-color: #eaede6; position: relative; height: 300px; min-height: 300px;">
<div style="padding: 10px;">
<div style="width: 630px; position: relative; margin-top: 5px;">
<div style="float: left; width: 70%; text-align: left;">
</div>
<div style="float: right; width: 30%; text-align: right;">
</div>
</div>
<div style="position: absolute; top: 33px; background-color: #999999; width: 640px; height: 1px;"> </div>
<div style="margin-top: 20px; font-size: 12px;">
<!-- Här skrivs innehållet ut -->
</div>
</div>
<div style="position: absolute; right: 20px; bottom: 20px;">
</div>
</div>
<div style="clear: both;"> </div>
</div>
</div>
</div>