Home › Forums › JavaScript › Dropdown content hidden behind the following
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: Looking at your code, and playing around in Firebug, I think it has to do with the z-index and positioning. Change this:
To this:
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.
PatrickLeahy
http://patrickleahydesign.com/everydaymind/
Any help would be appreciated!guiniveretoo
ul.dropdown ul li { font-weight: normal; float: none; z-index: 1; }
ul.dropdown ul li { font-weight: normal; float: none; z-index: 4; position: relative; }
Make sense?
Forums
The forums ran from 2008-2020 and are now closed and viewable here as an archive.