Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Dropdown content hidden behind the following

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32045
    PatrickLeahy
    Member

    When I roll over a menu item, the drop down items appear behind the following div. I’m not sure if it’s a css issue, a javascript issue, or both. Roll over the first menu item in the navigation and help me figure out what’s happening. Here’s the link:
    http://patrickleahydesign.com/everydaymind/
    Any help would be appreciated!

    #54676
    guiniveretoo
    Member

    Looking at your code, and playing around in Firebug, I think it has to do with the z-index and positioning. Change this:


    ul.dropdown ul li { font-weight: normal; float: none; z-index: 1; }

    To this:


    ul.dropdown ul li { font-weight: normal; float: none; z-index: 4; position: relative; }

    It has to do with the z-index has no effect unless unless you explicitly set the position, and you need to have a z-index value of at least 4 to put it on top of the objects around it. The correct rule for stacking order is that the objects *below* appear *on top* according to spec.
    Make sense?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.