July 3, 201412 yr HI all I am new in web design. Please help me, I've been downloading and editing menu and slider from here :Menu Horizontal Drop-Down Menu | CodropsSlider Full Width Image Slider | Codrops and my editing results : http://s23.postimg.org/gim5fg38r/tany.png http://s8.postimg.org/tzq06o9id/tanya.png when i klik menu, the slider covers the submenu, how to fix it? thanks
July 3, 201412 yr The menu needs to have a higher z-index than the slider. To be able to use z-index however, the selector should have a position attribute (e.g. relative or absolute). Example: .menu { position:relative; z-index:1; } .slider { position:relative; z-index:0; } See here for some visual examples: http://css-tricks.com/almanac/properties/z/z-index/
Create an account or sign in to comment