CSS horizontal menu hover effects

Cool ul li horizontal menu hover effects

css horizontal menu hover effects

HTML
<ul>
    <li>HOME</li>
    <li>NEWS</li>
    <li>VIDEOS</li>
    <li>PICTURES</li>
    <li>ABOUT</li>
    <li>CONTACT</li>
</ul>
CSS
ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    margin-top:20px;
}
ul li {
    background-color: #45484d;
    *zoom: 1;
    filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF45484D', endColorstr='#FF444444');
    background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #45484d), color-stop(100%, #444444));
    background-image: -webkit-linear-gradient(top, #45484d 0%, #444444 100%);
    background-image: -moz-linear-gradient(top, #45484d 0%, #444444 100%);
    background-image: -o-linear-gradient(top, #45484d 0%, #444444 100%);
    background-image: linear-gradient(top, #45484d 0%, #444444 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2), inset 0 -1px 2px rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-family:'Noto Sans', sans-serif;
    font-size: 1.2em;
    line-height: 1.5;
    padding-left: 1em;
    position: relative;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3), -1px -1px 4px rgba(255, 255, 255, 0.1);
    transition: 0.4s border ease-in-out;
    min-width:120px;
    display: inline-block;
    padding:5px 10px;
}
ul li:first-child { border-left: 6px solid #2ecc72; }
ul li:first-child:hover { color: #2ecc72; }
ul li:nth-child(2) { border-left: 6px solid #8e45ad;}
ul li:nth-child(2):hover {color: #8e45ad; }
ul li:nth-child(3) { border-left: 6px solid #e67e12; }
ul li:nth-child(3):hover { color:#e67e12; }
ul li:nth-child(4) { border-left: 6px solid #e74c4c; }
ul li:nth-child(4):hover { color: #e74c4c; }
ul li:nth-child(5) { border-left: 6px solid #3499db; }
ul li:nth-child(5):hover { color:#3499db; }
ul li:nth-child(6) { border-left: 6px solid #f2c40f; }
ul li:nth-child(6):hover { color: #f2c40f; }
li:hover{
    -webkit-box-shadow: 1px 1px 25px rgba(255, 255, 255, 0.75);
    -moz-box-shadow:    1px 1px 25px rgba(255, 255, 255, 0.75);
    box-shadow:         1px 1px 25px rgba(255, 255, 255, 0.75);
}
CSS horizontal menu hover effects CSS horizontal menu hover effects Reviewed by Bhaumik Patel on 9:57 PM Rating: 5