I have a layout that works that I wanted to add the ability to fix the header to the top. When I add the following to fix the header, my dropdown menu no longer is visible in IE 7 & 8.
div#top {
position:fixed;
top:0;
right:0;
left:0;
}
I tried setting higher z-indexes on all the parent elements of the dropdown which didn’t work. It shows in Firefox, Chrome, and Safari just not IE 7&8, haven’t tried IE9. I have a fiddle where you can see the results.
http://jsfiddle.net/tDhBq/embedded/result/ Full Screen
OK, it took me a while to find the problem. In my original post I wasn’t showing all the code. In my styles for
div#topwas az-indexproperty that I left out. Removing thez-indexproperty fromdiv#topfixed the issue in IE8 but the problem still existed in IE7. Removing thefilter:progid:DXImageTransform.Microsoft.gradientwhich I was using to set the gradient fromdiv#topfixed the issue in IE7. Not sure why the gradient caused an issue withposition: fixedand not withposition: static.