css
#cssmenu, #cssmenu ul, #cssmenu ul li, #cssmenu ul li a{
padding: 0;
margin: 5;
line-height: 1;
font-family: arial, sans-serif;
font-weight: bold;
font-size: 12px;
color: #F5F5F5;
-webkit-transition: all ease .3s;
-o-transition: all ease .3s;
-moz-transition: all ease .3s;
-ms-transition: all ease .3s;
transition: all ease .3s;
}
#cssmenu:before, #cssmenu:after, #cssmenu > ul:before, #cssmenu > ul:after {
content: '';
display: table;
}
#cssmenu:after, #cssmenu > ul:after {
clear: both;
}
#cssmenu a{
text-shadow: 0 0px 0px rgba(2, 2, 2, .25);
}
#cssmenu ul{
background: #40A9CF;
border-radius: 0px 0px 0px 0px ;
border: 0px solid #590000;
-webkit-box-shadow: 2px 1px 2px rgba(2, 2, 2, .25), inset 0 0 0px #fff;
-o-box-shadow: 2px 1px 2px rgba(2, 2, 2, .25), inset 0 0 0px #fff;
-moz-box-shadow: 2px 1px 2px rgba(2, 2, 2, .25), inset 0 0 0px #fff;
-ms-box-shadow: 2px 1px 2px rgba(2, 2, 2, .25), inset 0 0 0px #fff;
box-shadow: 2px 1px 2px rgba(2, 2, 2, .25), inset 0 0 0px #fff;
}
#cssmenu ul > li{
float: left;
list-style: none;
}
#cssmenu ul > li > a{
display: block;
text-decoration: none;
padding: 10px 10px;
position: relative;
}
#cssmenu ul > li > a:hover{
background: #358BAB;
color:#fff;
-webkit-box-shadow: inset 0 0 0px #000;
-o-box-shadow: inset 0 0 0px #000;
-moz-box-shadow: inset 0 0 0px #000;
-ms-box-shadow: inset 0 0 0px #000;
box-shadow: inset 0 0 0px #000;
-webkit-transition: all ease 0.3s;
-o-transition: all ease 0.3s;
-moz-transition: all ease 0.3s;
-ms-transition: all ease 0.3s;
transition: all ease 0.3s;
}
#cssmenu ul > li > a:hover:before{
content: '';
z-index: 2;
position: absolute;
border: 0px solid white;
border-top: 0;
border-bottom: 0;
border-right: 0;
width: 100%;
height: 100%;
top: 0;
left: -1px;
opacity: .2;
}
#cssmenu ul > li > a:hover:after{
content: '';
z-index: 2;
position: absolute;
border: 0px solid white;
border-top: 0;
border-bottom: 0;
border-left: 0;
width: 100%;
height: 100%;
top: 0;
right: -1px;
opacity: .2;
}
#cssmenu > ul > li > ul{
opacity: 0;
visibility: hidden;
position: absolute;
}
#cssmenu > ul > li:hover > ul{
opacity: 1;
visibility: visible;
position: absolute;
border-radius: 0px 0px 0px 0px;
-webkit-box-shadow: inset 10 10 10px #000;
-o-box-shadow: inset 0 10 10px #000;
-moz-box-shadow: inset 10 10 10px #000;
-ms-box-shadow: inset 10 10 10px #000;
box-shadow: inset 10 10 10px #BA0000;
}
#cssmenu > ul > li > ul{
width: 160px;
position: absolute;
}
#cssmenu > ul > li > ul > li{
float: none;
position: relative;
}
#cssmenu > ul > li > ul > li > ul{
opacity: 1;
visibility: hidden;
position: absolute;
}
#cssmenu > ul > li > ul > li:hover > ul{
opacity: 1;
visibility: visible;
position: absolute;
}
#cssmenu > ul > li > ul > li > ul{
left: 202px;
top: 1px;
width: 200px;
}
#cssmenu > ul > li > ul > li > ul > li{
float: none;
}
HTML
<div id='cssmenu'>
<ul>
<li class='active'><a href='/'><span><img src="http://www.spanware.com/legalsoftware/flhoa/files/home_web.png" width="12" height="12"></span></a></li>
<li class='has-sub'><a href='#><span>Menu</span></a>
<ul>
<li><a href='#><span>Menu</span></a></li>
<li><a href='#><span>Menu</span></a></li>
<li><a href='#><span>Menu</span></a></li>
<li class='last'><a href='#><span>Menu</span></a></li>
</ul>
</li>
<li class='has-sub'><a href='#><span>Menu</span></a>
<ul>
<li><a href='#><span>Menu</span></a></li>
<li><<a href='#><span>Menu</span></a></li>
<li><a href='#><span>Menu</span></a></li>
<li class='last'><a href='#><span>Menu</span></a></li>
</ul>
</li>
<li><a href='#><span>Menu</span></a></li>
<li class='last'><a href='http://hdol.vn' target="_blank"><span>Diễn đàn</span></a></li>
</ul>
</div>