Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have created a website that has a dropdown menu as a navigation. I have a photo gallery below the menu. The problem is when I mouse hover on the drop down menu, it goes under the the photo gallery and I dont see the menu list. I want to see the deopdown menu over the photo gallery. How can I solve this problem?

Thank you.
Posted

1 solution

The z-index of the menu needs to be higher than z-index of a gallery.

Z-Index Info

CSS
.menu {
     z-index: 500;
}

.gallery {
     z-index: 10;
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900