Thank you very much! You led me to understand what Bowman did on Adaptive Path (http://www.adaptivepath.com/). Below is what I did (same principle as you had discussed). I just feel below is a little bit cleaner and structurally looks better in the markup.
XHTML
Code:
<div id="neck">
<h4><strong><span>SAL Sections:</span></strong></h4>
<ul>
<li id="nav-home"><a href="/">Home</a></li>
<li id="nav-programs"><strong>Programs</strong></li>
<li id="nav-events"><a href="/events/">Events</a></li>
<li id="nav-news"><a href="/news/">News</a></li>
<li id="nav-about"><a href="/about/">About SAL</a></li>
<li id="nav-contact"><a href="/contact/">Contact</a><em> </em></li>
</ul>
</div>
CSS
Code:
#neck ul {
width: 760px;
margin: 0 0 15px 0;
padding: 0;
font-size: .9em;
line-height: normal;
text-transform:lowercase;
background: #00f;
}
#neck ul li {
display: inline;
margin: 0;
padding: 0;
}
#neck ul a, #neck ul strong, #neck ul em {
float: left;
display:block;
white-space:nowrap;
padding:8px 6px 2px;
text-decoration: none;
color: #fff;
height:1.5em;
}
#neck ul strong, #neck ul a:hover {
border-top: 4px solid #00f;
padding-top: 4px;
background: #fff;
color: #000;
}
#neck ul a:hover {
border-top: 4px solid #00f;
padding-top: 4px;
background: #fff;
color: #f00;
}
#neck ul em {
float:none;
display:block;
}
Bookmarks