Accessibility

CSS Advisor

CSS pop ups get stuck in Internet Explorer

by Thierry Koblentz on December 18, 2006
Edited by: sfegette on November 24, 2009
Avg Rating 2.7 (3)   |   Log in to rate post.

Tagged with Display , Explorer 6.0 , Explorer 5.0 , stuck , display , Position , pop up , Explorer 5.5 , stick , Explorer for Mac , span , hover

Problem

In Internet Explorer, your pop up menu appears but does not go away.

Solution

Make sure the rule for the nested (pop-up) element contains only the declaration that hides it.

Detailed description

The nested element appears when the cursor hovers over the link, but it stays visible when the cursor moves out of the link.

There are a few conditions that trigger this behavior, thus there are a few different workarounds that can address the problem, but the easiest solution is to make sure that the rule for the nested element contains nothing else than the declaration used to hide it. For example, the following would trigger the bug:


a:hover span {display:inline;}
a span {display:none;position:absolute;top:10em;}

But these rules would not:

a:hover span {display:inline;position:absolute;top:10em;}
a span {display:none;}

Test case







Text ID:



Comments (0)

To add a comment, please Log in.








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)