You can't just apply the z-index to the drop-down menu - you need to apply z-pointers to sibling elements to ensure the correct stacking order.
Without seeing your HTML, it's impossible to determine where they should go. But the best I can say is apply z-index to the whole navigation bar and one for all your content div. Keep in mind that, as Ajay said, for the z-instructions to work correctly, the elements to which they are applied must not be static (in your case, the position: relative is likely to be the best option).
source share