Accessibility

CSS Advisor

Guillotine Bug

by CSSAdvisorAdmin on October 31, 2006
Edited by: Amy C Taylor on November 24, 2009
Avg Rating 2.3 (3)   |   Log in to rate post.

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

Problem

If a container element contains both a float that is not cleared, and links that use an a:hover rule to change certain properties in non-floated content after the float, hovering over said links will cause the bottom of the floated content to disappear.

Solution

No perfect solution, but two options: [1] Use a clearing div outside the container when the float should not be contained; and [2] use a combination of :after and the Holly hack to create a clearing element within the container when the float should be contained.

Detailed description

If a container element contains both a float that is not cleared and links that use an a:hover rule to change certain properties* in non-floated content after the float, hovering over said links will cause the bottom of the floated content to disappear.

When a container has dimensions set, IE automatically encloses all floats inside the container. In these cases, the container will stretch down to contain a float that is larger than the height of non-floated content.

*background, padding, text style, and border are all triggers; text color is NOT.

Bug originally reported by Prabhath Sirisena on positioniseverything.net. (Original Article)




Text ID: GUILLOTINE_BUG



Comments (1)

To add a comment, please Log in.




Maybe it is one solution

Use the table to replace the div in the Guillotine Bug .





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)