The drop down menu does not display in IE7 & IE6 and the positioning is also not working correctly.
This page has both issues.
On the following page the positioning is correct:
Suggestions would be much appreciated
The drop down menu does not display in IE7 & IE6 and the positioning is also not working correctly.
This page has both issues.
On the following page the positioning is correct:
Suggestions would be much appreciated
— since the same menu behaves differently between your two pages, the issue is almost always a CSS stacking/positioning difference in an ancestor element rather than the menu code itself. @diafol’s note that Chrome also places the dropdown partly off-screen points to a positioning/overflow problem (not the old IE SELECT-on-top bug). Start by comparing the DOCTYPE and the nearest positioned ancestors around the nav on the working page vs the broken page.
Quick, practical checklist to narrow it down:
position, overflow (especially hidden), and z-index on ancestors.overflow: visible on container elements to see if the menu is being clipped.position: relative wrapper).zoom:1) and an explicit z-index.Try this minimal test (add only for troubleshooting):
#nav-wrapper { position: relative; z-index: 1000; zoom: 1; }
#nav-wrapper ul li ul { position: absolute; top: 100%; left: 0; z-index: 1001; } If that fixes it, remove rules one at a time to find the real culprit. If you’re still stuck, post the HTML/CSS around the #nav-wrapper (the outermost nav container and its parents) and I’ll point to the exact property to change. For background reading on stacking and positioning, see MDN’s pages on z-index and position and overflow: z-index position overflow.
The big drop down isn't displaying correctly in Chrome either. It's half way off the screen
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.