CSS IE6 float right

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2010-01-12T06:16:05Z Indexed on 2010/04/10 4:33 UTC
Read the original article Hit count: 572

Filed under:
|
|
|

How come when I have a div style at display: block; float: right, in IE6 the div still goes under the text, and not in the middle of it just floated to the right. It works in all other browsers, including IE7+. I need to have display block because if i do display inline, then the menu inside the div is all messed up.

.content { display: block; }

.float { width: 150px; display: block; float: right; } .nothing { display: inline; }

the float class is not to the right of nothing class, its under it in IE6, know a fix?

© Stack Overflow or respective owner

Related posts about ie6

Related posts about float