Bradly Spicer
Bradly Spicer

Reputation: 2318

Making a navigation dropdown appear over a slider

Having an issue with my WordPress theme. The navigation seems to sit behind the slider. The theme is based off "Twenty Twelve". But it should be some CSS changes.

I'm not really sure on how to approach this and any feedback is much appreciated.

When I push the slider up (How I want it):

enter image description here

When the slider is pushed down:

enter image description here

Upvotes: 0

Views: 70

Answers (1)

SKeurentjes
SKeurentjes

Reputation: 1878

Set the z-index of your submenu higher then the z-index of your slider (z-index: 100).

Example:

.main-navigation li ul {
   display: none;
   margin: 0;
   padding: 0;
   position: absolute;
   top: 100%;
   z-index: 1000;
}

Upvotes: 1

Related Questions