Problem with floating divs in IE8

Posted by hivehicks on Stack Overflow See other posts from Stack Overflow or by hivehicks
Published on 2010-04-05T13:28:37Z Indexed on 2010/04/05 13:33 UTC
Read the original article Hit count: 246

Filed under:
|
|
|

I want to make two block stand side by side. In Opera, Chrome and Firefox I get the expected result with the code I use. But IE8 refuses to display it correctly. Here's IE8 screenshot: http://ipicture.ru/upload/100405/RCFnQI7yZo.png And Chrome screenshot (how it should look like): http://ipicture.ru/upload/100405/4x95HC33zK.png

Here's my HTML:

<div id="balance-container">
    <div id="balance-info-container">
        <p class="big" style="margin-bottom: 5px;">
            <strong>
                <span style="color: #56666F;">??????:</span>
                <span style="color: #E12122;">-2312 ???</span>
            </strong>
        </p>
        <p class="small minor"><strong>????????? 1000 ???. ?? 1.05.10</strong></p>
    </div>
    <div id="balance-button-container">
        <button id="pay-button" class="green-button">????????? ????</button>
    </div>
</div>

And CSS:

#balance-container {
    margin-left: auto;
    margin-right: auto;
    width: 390px;
}
#balance-info-container, #balance-button-container {
    float: left;
}
#balance-info-container {
    width: 250px;
}

© Stack Overflow or respective owner

Related posts about html

Related posts about css