Submenu below slider in Wordpress

Viewed 117

I'm using WordPress (with Antreas theme).

I created a sub menu for it, but the slider is above the sub-menu.

When I set z-index on slider (below the slider): the sub menu is working, but the controls on the slider are not.

How can I fix it?

Thanks advanced

My Website

the sub menu is below the slider

Code: Source Code

.slider {
    padding: 0;
    margin: 0;
    position: relative;
    text-align: center;
    transition: 0.3s all;
    background-color: #333333;
    z-index: -1 !important;
}

.menu-main li ul {
    position: absolute;
    margin: 5px 0 0;
    background-color: #fff;
    border: 1px solid #eee;
    transition-delay: 0.2s;
    visibility: hidden;
    opacity: 0;
    top: 100%;
    left: 0;
    z-index: 9998 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

.sub-menu {
    color: #000 !important;
    background-color: #ccc;
}
1 Answers

if i understood your problem correctly then you need to add z-index: 9999 to the .header class. The elements on the slider are clickable.

enter image description here

Related