Simple Tab Menu with UL LI
<!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>
<title>Simple Tab Menu</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
ul {
list-style: none;
}
#outer {
background: #88B3AD;
padding: 10px;
margin: 10px;
}
#content {
width: 700px;
min-height: 300px;
border: 1px solid #ccc;
}
ul#tab {
line-height: 2em
}
ul#tab a {
color: #fff;
background: red;
border: 1px solid #aaa;
text-transform: uppercase;
border-bottom: none;
position: relative;
padding: 3px 10px 4px;
top: 2px;
text-decoration: none;
}
ul#tab a:hover,ul#tab a.current {
background: #669;
color: #FFE6B7;
padding-bottom: 5px;
}
ul#subnav {
background: #669;
height: 2em;
color: white;
padding: 5px 5px;
}
ul#subnav li,ul#tab li {
display: inline
}
ul#subnav a {
color: white;
text-decoration: none;
}
ul#subnav a:hover {
color: #FFE6B7
}
</style>
</head>
<body>
<div id="outer">
<ul id="tab">
<li><a class="current" href="#">Home</a></li>
<li><a href="#">About us</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">links </a></li>
</ul>
<div id="content">
<ul id="subnav">
<li><a href="#">Link One</a> |</li>
<li> <a href="#">Link 2</a> |</li>
<li> <a href="#">Link 3</a> | </li>
<li> <a href="#">Link 4</a> </li>
</ul>
</div>
</div>
</body>
</html>
Related examples in the same category