CSS Menu with description




A simple, cross browser compatible horizontal CSS menu with description, no javascript.css menu download

Menu features:

  • list based;
  • no javascript required;
  • easy to customize;
  • easy to implement;
  • cross-browser compliant;
  • very light-weight only 1,97 KB.
Demo:

HTML code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="menu.css" />
<title>CSS Horizontal Menu with description</title>
</head>
<body>
<div class="menu_des">
<ul>
<li><a href="#">Home<span class="small">Home Page</span></a></li>
<li><a href="#">About Us<span class="small">Read more about us</span></a></li>
<li><a href="#">Products<span class="small">Check Products</span></a></li>
<li><a href="#">Information<span class="small">Some Information</span></a></li>
<li><a href="#">Contact Us<span class="small">Have questions?</span></a></li>
</ul>
</div>
</body>
</html>
CSS code:
/* CSSTerm.com CSS Horizontal menu with description */

.menu_des {
   background:#005555 url('img_bg.gif') repeat-x;
   height:57px;
}

.menu_des ul {
    margin: 0; padding: 0;
    float: left;   
}

.menu_des ul li {
    display: inline-block;
    background:url(img03.gif) no-repeat right top;
    text-align:center;
    margin-top:5px;
}

.menu_des ul li a {
    float: left;
    text-decoration: none;
    color: #666666; 
    height:57px;
    padding: 10px 0px;
    margin-top:-5px;
    text-transform:uppercase;
    font:Verdana, Geneva, sans-serif;
}
 
.menu_des ul li a:visited {
    color: #666666;
}
 
.menu_des ul li a:hover, .menu_des ul li .current {
    color: #FFF;
    background:url('btn_bg.gif') repeat-x;
}

.small{
	color: #666666;
	display:block;
	font-size:11px;
	padding: 0px 30px;
	font-weight:normal;
}