Results 1 to 5 of 5

Thread: Smooth Menu - changing position causes submenu problem in IE

  1. #1
    Join Date
    May 2009
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Smooth Menu - changing position causes submenu problem in IE

    1) Script Title: Smooth Navigational Menu (v1.3)

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

    3) Describe problem:

    Hi,

    I am trying to use this fantastic menu for the first time and encountered a problem with positioning.
    When the menu is positioned at the top of the page everything works great.
    However what I would like to do is add a banner on the top of the page and have the menu directly below it, followed by another div with some actual site content.

    How I was trying to go about it is to have a div for the banner (for now only a diff bg color) and then pull the menu via external html (as described in the DD tutorial) and then below it have another div with a different bg color for text for the site.

    In order to drop the menu below the banner, I tried editing the css for the menu:

    Code:
    .ddsmoothmenu{
    position:absolute; top:200px; left:0px;
    font: bold 12px Verdana;
    background: #414141; /*background of menu bar (default state)*/
    width: 100%;
    }
    
    .ddsmoothmenu ul{
    clear;
    z-index:100;
    margin: 0;
    padding: 0;
    list-style-type: none;
    }
    however when I do that FF is OK but IE6 and IE 7 hide the submenu under the div that follows it...see attached pic

    How should I approach this to avoid this problem...

    Thanks a bunch!!!
    Last edited by Snookerman; 05-11-2009 at 10:58 AM. Reason: added “Resolved” prefix

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

    Default

    Is the content that's obscuring the drop down menus in IE6/7 just regular HTML content, or is it Flash/ Java etc? From the screenshot it appears as if the former.
    DD Admin

  3. #3
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Try adding this to your CSS code:
    Code:
    .ddsmoothmenu{
    position:absolute; top:200px; left:0px;
    font: bold 12px Verdana;
    background: #414141; /*background of menu bar (default state)*/
    width: 100%;
    z-index: 1000;
    }
    Good luck!

  4. #4
    Join Date
    May 2009
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    It is a regular HTML content...

  5. #5
    Join Date
    May 2009
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hi,

    Thanks for your suggestion, I managed to solve it by laying out other elements in a relative (vs. absolute) way...
    It now works on both FF and IE6/7.

    Thanks a bunch!

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
  •