Himas Rafeek
Posted on: 2 years ago
CSS

Easy WordPress Drop Downs using CSS

Use Z-Index to make navigation layer ABOVE other elements.


                                          ul.menu, ul.menu li {
    float: left;
}
ul.menu li {
    position: relative;
    margin: 0 15px;
    list-style: none;
}
 .sub-menu {
    position: absolute;
    float: none;
    width: 100px;
    padding: 0;
    left: 0;
}
.sub-menu li {
    display: none;
    margin: 0;
    padding: 0;
}
ul.menu li:hover li {
    float: none;
    display: block;
    clear: both;
}