0

I've been busting my head at this for quite some time now and I can't figure it out for the life of me.

Basically, I have the following site: http://tuivirtual.com/en/

If you move your mouse at the top portion of the banner images you'll notice that the dropdown menu drops but it shouldn't. It should drop only when hovered over the actual

  • tags, not below.

    Any help is more than welcome!

    Thanks!

  • 4

    3 回答 3

    2

    A simple solution is to give the ".sub-nav-wrapper" a negative "z-index" and on hover to add a positive "z-index" to it.

    #navigation li .sub-nav-wrapper {
    z-index: -1;}
    
    #navigation li:hover .sub-nav-wrapper {
    z-index: 10;}
    

    This will do the trick and it will keep the transition.

    于 2013-04-28T16:03:27.497 回答
    0

    The element is still 'there', it just has an opacity of 0:

    enter image description here

    #navigation li .sub-nav-wrapper {   
        opacity: 0;
    }
    
    #navigation li:hover .sub-nav-wrapper {
        opacity: 1;
    }
    

    To solve this problem, hide it in some other way.

    于 2013-04-28T16:01:50.620 回答
    0

    Try add this CSS code:

    ul#navigation li div.sub-nav-wrapper {
        display: none;
    }
    ul#navigation li:hover div.sub-nav-wrapper {
        display: 1;
    }
    

    That should do it.

    于 2013-04-28T16:21:20.843 回答