Two floating div's, one underneath. works in every browser except IE

Posted by Veltar on Stack Overflow See other posts from Stack Overflow or by Veltar
Published on 2012-09-03T15:02:41Z Indexed on 2012/09/03 15:38 UTC
Read the original article Hit count: 194

So I have an html-structure that looks like this:

<div id="contact-wrapper">
    <div>
        <h4>België</h4>

        <p>Tuinwijklaan 79<br />
        9000 Gent<br />
        Tel. 0468/115967<br />
         [email protected]<br />
         </p>
    </div>
    <div>
        <h4>Nederland</h4>

        <p>Kerkstraat 423-C<br />
        1017 HX Amsterdam<br />
        Tel: +32 468 11 59 67<br />
         [email protected] </p>
    </div><br />
    <a id="link-contact" href="#">Contacteer ons</a>
</div>

The two div's are displayed next to each other, and the link under it, like this:

Divs like it should be

But in ie9 it shows like this:

ie9 divs

This is my css for the divs:

footer div#contact-wrapper, footer h1 {
    float: left;
}

footer div#contact-wrapper div {
    margin: 16px 0px 0px 45px;
    float: left;
}

footer div#contact-wrapper div:first-of-type {
    padding-right: 30px;
    margin-left: 60px;
    border-right: 1px dashed #a3b0b9;
}

footer div#contact-wrapper a#link-contact {
    display: inline-block;
    background: #ffffff url('../img/contact-arrow.gif') no-repeat 95% center;
    border: 4px solid #bbc2c7;
    font-size: 12px;
    color: #bbc2c7;
    margin: 5px 0px 0px 60px;
    padding: 3px 0px 3px 5px;
    width: 150px;
}

© Stack Overflow or respective owner

Related posts about html

Related posts about css