Strange popup menu issue in IE7: http://screenr.com/SNM
The popup window disappears when the mouse moves to the part that hangs over the other layers.
The HTML structure is as follows:
<div class="header">
<ul class="nav>
<li><a href="">item</a>
<ul><li><a href="">sub-item</a></li></ul>
</li>
</ul>
</div>
<div class="featured"></div>
<div class="content"></div>
The submenu is positioned absolutely and has visibility:hidden, then it is set to visibleusing jQuery, for example:
$(".header ul.nav li").hover(function(){
$(this).addClass("hover");
$('ul:first',this).css('visibility', 'visible');
}, function(){
$(this).removeClass("hover");
$('ul:first',this).css('visibility', 'hidden');
});
I had a problem with a drop-down list under different content in IE7, which was easily fixed by specifying z-index to its parent and other divs:
*:first-child+html .header {
position: relative;
z-index: 2 !important;
}
*:first-child+html .content,
*:first-child+html .main,
*:first-child+html .primary
*:first-child+html .featured {
position: relative;
z-index: 1 !important;
}
Now I have no idea why the menu disappears when it hangs over other divs, you can view the site here: http://dev.gentlecode.net/ama/ubezpieczenia.html
, - . , ...
!