Dropdown menu, z-index problems

user1505027 picture user1505027 · May 1, 2013 · Viewed 47.7k times · Source

I've got a problem. I have a drop down menu, but the drop down list is always one layer behind the body although the z-index of menu is set to 999 and z index of body set to -999

Please chceck http://www.w3dominik.com/x/finemoney/ (the menu on top right, it says dropdown and should have 2 options, only 1 is now visible)

Thanks for help

Answer

ralph.m picture ralph.m · May 1, 2013

This will fix it for you:

#header_wrap {
  position: relative;
  z-index: 10;
}

You often need to set the z-index on the outermost parent (particularly in older versions of IE).