Abas
The HTML:htm
-------------------------------------------------
<ul id="tablist">
<li><a class="current" href="http://www.cssdrive.com">CSS Drive</a></li>
<li><a href="http://www.yahoo.com">Yahoo</a></li>
<li><a href="http://www.google.com">Google</a></li>
<li><a href="http://www.news.com">News.com</a></li>
</ul>
The CSS:
-------------------------------------------------
#tablist{ padding: 3px 0; margin-left: 0; margin-bottom: 0; margin-top: 0.1em; font: bold 12px Verdana; border-bottom: 1px solid gray;
}
#tablist li{ list-style: none; display: inline; margin: 0;
}
#tablist li a{ text-decoration: none; padding: 3px 0.5em; margin-right: 3px; border: 1px solid #778; border-bottom: none; background: white;
}
#tablist li a:link, #tablist li a:visited{ color: navy;
}
#tablist li a:hover{ color: black; background: lightyellow; border-color: navy;
}
#tablist li a.current{ background: lightyellow;
}
Copie e cole o código abaixo em algum lugar entre o <head> </ head> tags.
<link href="/menu_assets/styles.css" rel="stylesheet" type="text/css">
Html cod
<div id='cssmenu'>
<ul>
<li><a href='#'><span>Home</span></a></li> <li class='active has-sub'><a href='#'><span>Products</span></a> <ul> <li class='has-sub'><a href='#'><span>Product 1</span></a> <ul> <li><a href='#'><span>Sub Product</span></a></li> <li class='last'><a href='#'><span>Sub Product</span></a></li> </ul> </li> <li class='has-sub'><a href='#'><span>Product 2</span></a>