Accessibility

CSS Advisor

Floated non-float bug

by CSSAdvisorAdmin on November 1, 2006
Edited by: Amy C Taylor on November 24, 2009
Avg Rating 3.5 (6)   |   Log in to rate post.

Tagged with Explorer 6.0 , Explorer 5.0 , Position , Explorer 5.5 , Float , Explorer for Mac

Problem

A non-floated block with a width property that follows one or more left-floated blocks may incorrectly appear to the right of the floated blocks instead of below them.

Solution

Nothing standard.

Detailed description

Essentially, IE 5-6 Windows does not calculate the position of floats correctly. In this case, it would appear the left edge of the content is calculated before the width is applied- when as per specs the width should be applied before the edge position of the float should be calculated and rendered.

Alas, there is no workaround identified yet for this issue.

This bug was identified by Marc Pacheco at Quirksmode.org. (Read original article)




Text ID: FLOATING_NON_FLOAT



Comments (4)

To add a comment, please Log in.




nice work

I use the method of  el_coroco, and I succes. Thx.

This worked with me...

I removed the widths from the right unfloated box and used margins instead...

Possible solution?

I came across this problem with a footer. I added a class of clear:both; above and below my footer and then done the browser compatibility check and the problem had gone.





CSS Advisor home
Submit a post

rss

CSS ADVISOR RSS FEEDS
Recent: POSTS | COMMENTS | EDITS


Browsers
Internet Explorer (45)
Mozilla/Firefox (16)
Opera (7)
Safari (13)
CSS Properties
Background (6)
Border (3)
Color (1)
Float (15)
Font (1)
Margin (6)
Padding (4)
Position (15)
Text (13)
Width/Height (9)