Gabriel Santos
Gabriel Santos

Reputation: 4974

IE7's float right property

I have the follow code:

// CSS
.foo strong {
    float: right;
}

// HTML
<div class="foo">
    foo
    <strong>bar</strong>
</div>

And want to float the "strong' to right, but IE7 don't recognize the action..

Wrong

enter image description here

Correct

enter image description here

Upvotes: 0

Views: 96

Answers (1)

The Alpha
The Alpha

Reputation: 146191

<div class="foo">
    <strong>bar</strong>
    foo
</div>

animuson already answered, so He deserves the vote and if you need to close it for any reason you may go on but you should for animuson's answer.

Upvotes: 1

Related Questions