Horizontal menu bar
<!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=ISO-8859-1" />
<title>CosmoFarmer</title>
<style type="text/css">
#mainNav {
margin: 0;
padding: 0;
list-style: none;
border-left: 1px dashed #999;
overflow: hidden;
zoom: 1;
}
#mainNav li {
float: left;
width: 12em;
}
#mainNav a {
color: #000;
font-size: 11px;
text-transform: uppercase;
text-decoration: none;
border: 1px dashed #999;
border-left: none;
padding: 7px 5px 7px 30px;
display: block;
background-color: #E7E7E7;
background-image: url(images/nav.png);
background-repeat: no-repeat;
background-position: 0 2px;
zoom: 1;
}
#mainNav a:hover {
font-weight: bold;
background-color: #B2F511;
background-position: 3px 50%;
}
#home #homeLink,
#feature #featureLink,
#expert #expertLink,
#quiz #quizLink,
#project #projectLink,
#horoscope #horoscopeLink
{
background-color: #FFFFFF;
background-position: 3px 100%;
padding-right: 15px;
padding-left: 30px;
font-weight: bold;
}
</style>
</head>
<body id="feature">
<ul id="mainNav">
<li><a href="" id="homeLink">Home</a></li>
<li><a href="" id="featureLink">Features</a></li>
<li><a href="" id="experLink">Experts</a></li>
<li><a href="" id="quizLink">Quiz</a></li>
<li><a href="" id="projectLink">Projects</a></li>
<li><a href="" id="horoscopeLink">Horoscopes</a></li>
</ul>
</body>
</html>
Related examples in the same category