Simple CSS dropdown menu

Create a Pure CSS Dropdown Menu

Multilevel Dropdown menu creating with HTML & CSS without any JavaScript. Menu features multiple sub categories that appear once the parent link is activated by a hover. The first series of sub-links appear underneath main nav bar, then the second series of links display out horizontally from the first dropdown.

HTML

<ul>
    <li><a href="#">Home</a></li>
    <li><a href="#">About Us</a>
        <ul>
            <li><a href="#">Location</a></li>
            <li><a href="#">Company</a>
                <ul>
                    <li><a href="#">Our Vission</a></li>
                    <li><a href="#">Our Mission</a></li>
                </ul>
            </li>
       </ul>
    </li>
    <li><a href="#">Products</a></li>
    <li><a href="#">Services</a></li>
    <li><a href="#">Contact</a></li>
</ul>

CSS

*{
    font-family:arial;
    font-size:12px;
}

li{    
    display:inline-block; 
    background: #000;
    float:left;
    position: relative;
    border-right: 1px solid #fff;
}

li a{
    color: #fff;
    display: block;
    padding: 10px 12px;
    text-decoration: none;

}

li:hover > a{
    background:#333;
}

li ul{
    display:none;
    position: absolute;
    top: 35px;
    left: 0;
    padding: 0;
}

li:hover > ul{
    display:block;
}

li ul ul{
    top: 0;
    left: 109px;
}

li li{
    border-right: 0;
    border-top: 1px solid #fff;
}

li ul li{
   min-width: 108px; 
}
Tag: