IE8 - Container mit margin-top: 10px hat keinen Spielraum

EDIT: Das passiert nur im IE8, funktioniert es im IE7, Firefox, Opera etc

Erste von allen, hier ist ein Bild habe ich in photoshop gemacht, um zu demonstrieren, dass mein problem: http://richardknop.com/pict.jpg

Nun sollten Sie haben Ahnung von meinem Problem. Hier ist eine vereinfachte version des markup, die ich verwende (habe ich aus den meisten irrelevante Inhalte):

<div class="left">
    <div class="box">
        //box content
    </div>
    <div class="box">
        //box content
    </div>
    <div class="box">
        //box content
    </div>
</div>
<div class="right">
    <div class="box">
        //box content
    </div>
    <div class="box">
        //box content
    </div>
    <div class="box">
        //box content
    </div>
</div>
<div class="clear"></div>
<div class="box">
    //
    //NOW THIS BOX HAS NO TOP MARGIN
    //
</div>
<div class="box">
    //box content
</div>

- Und CSS-Stile, die gehen so:

.clear {
    clear: both;
}
.left {
    float: left;
}
.right {
    float: right;
}
.box {
    overflow: auto;
    margin-top: 10px;
}

Natürlich habe ich Links alle irreevant Stile, wie Rahmen, Hintergrundfarben und-Bilder, schriftart, Größen etc. Ich habe nur die wichtigen Sachen.

Irgendeine Idee, wo das problem sein könnte?

InformationsquelleAutor Richard Knop | 2009-08-07
Schreibe einen Kommentar