Results 1 to 2 of 2

Thread: Problem with chrome menu in IE7

  1. #1
    Join Date
    Oct 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem with chrome menu in IE7

    1) Script Title: Chrome Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...rome/index.htm

    3) Describe problem:
    In IE7 when you hover over the main link the menu appears but as you try to selcet one of the dropdrop links the menu disappears. It's as though it's not seeing the whole div as a rollover.

    I'm using images rather than text could that be the problem - maybe with no background it doesn't know there is a clickable area?

    It works fine in all other browsers including IE6. Any ideas?


    SOLVED I had changed the .dropmenudiv style to z-index:3; and it must have been hiding below some other content. I changed it back to 100 and now works perfectly.
    Thanks to DD by far the best CSS/Menu site around.
    Ta
    DesignerGav
    Last edited by designergav; 10-04-2007 at 10:29 AM. Reason: SOLVED

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    It has something to do with your modification of the styles for the drop down. If I reinstate the default rules:

    Code:
    .dropmenudiv{
    position:absolute;
    top: 0;
    border: 1px solid #BBB; /*THEME CHANGE HERE*/
    border-bottom-width: 0;
    font:normal 12px Verdana;
    line-height:18px;
    z-index:100;
    background-color: white;
    width: 200px;
    visibility: hidden;
    filter: progid:DXImageTransform.Microsoft.Shadow(color=#CACACA,direction=135,strength=4); /*Add Shadow in IE. Remove if desired*/
    }
    
    
    .dropmenudiv a{
    width: auto;
    display: block;
    text-indent: 3px;
    border-bottom: 1px solid #BBB; /*THEME CHANGE HERE*/
    padding: 2px 0;
    text-decoration: none;
    font-weight: bold;
    color: black;
    }
    
    * html .dropmenudiv a{ /*IE only hack*/
    width: 100%;
    }
    
    .dropmenudiv a:hover{ /*THEME CHANGE HERE*/
    background-color: #F0F0F0;
    }
    The menu works again in IE7. Try experimenting to see what your version is missing that is causing the problem in IE7. IE7 has a few subtle CSS bugs, so something that may not seem related can in fact be the cause.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •