Aquí un ejemplo un tanto sucio, pero que te puede dar una idea de como hacerlo, lo he hecho de rápido, pero espero que te pueda servir:
Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Untitled</title>
<style type="text/css">
/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */
.indentmenu{
font: bold 13px Arial;
width: 100%; /*leave this value as is in most cases*/
overflow: hidden;
}
.indentmenu ul{
margin: 0;
padding: 0;
float: left;
width: 80%; /*width of menu*/
border: 1px solid #564c66; /*dark purple border*/
border-width: 1px 0;
background: black url(indentbg.gif) center center repeat-x;
}
.indentmenu ul li{
display: inline;
}
.indentmenu ul li a{
float: left;
color: white; /*text color*/
padding: 5px 11px;
text-decoration: none;
border-right: 1px solid #564c66; /*dark purple divider between menu items*/
}
.indentmenu ul li a:visited{
color: white;
}
.indentmenu ul li a:hover, .indentmenu ul li, .current{
color: white !important; /*text color of selected and active item*/
padding-top: 6px; /*shift text down 1px for selected and active item*/
padding-bottom: 4px; /*shift text down 1px for selected and active item*/
background: #06F url(indentbg2.gif) center center repeat-x;
}
</style>
<script type="text/javascript">
function aggEvento(){
var links = document.getElementById('indentmenu').getElementsByTagName('a');
for(i=0; links[i]; i++){
links[i].onclick = function(){
var links = document.getElementById('indentmenu').getElementsByTagName('a');
for(j=0; links[j]; j++){
links[j].className = "";
}
this.className = 'current';
}
}
}
</script>
</head>
<body>
<link type="text/css" rel="stylesheet" href="1.css">
<body id="top" onload="aggEvento()">
<div class="indentmenu" id="indentmenu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#" class="current">CSS</a></li>
<li><a href="#">Forums</a></li>
<li><a href="#">Webmaster Tools</a></li>
<li><a href="#">JavaScript</a></li>
<li><a href="#">Gallery</a></li>
</ul>
</div>
</body>
</body>
</html>