Float your boat

Author: Marc Liddell

Comments: "Floats the active tab to the right while keeping the rest in a black grid thing. Turns blue/white on hover."

Browser support chart

HTML
<div id="navcontainer">
<ul id="navlist">
<li id="active"><a href="#" id="current">Item one</a></li>
<li><a href="#">Item two</a></li>
<li><a href="#">Item three</a></li>
<li><a href="#">Item four</a></li>
<li><a href="#">Item five</a></li>
</ul>
</div>

CSS
#navlist
{
border: 3px solid #222;
padding: 0 0 0 20px;
margin: 0;
background-color: #ACF;
font-family: verdana,sans-serif;
font-size: 12px;
font-weight: bold;
}

#navlist li
{
display: inline;
list-style: none;
padding: 0;
margin: 0;
}

#navlist #active
{
float: right;
margin-right: 10px;
}

#navlist li a
{
text-decoration: none;
border: 3px solid #000;
padding: 0 8px 1px 8px;
margin: 0 2px;
background-color: #FFF;
color: #000;
}

* html #navlist li a { padding: 0 8px; }

#navlist li a:hover
{
background-color: #26A;
color: #FFF;
}


ABOUT THE CODE
Some lists within the Listamatic site had to be modified so that they could work on Listamatic's simple list model. When in doubt, use the external resource first, or at least compare both models to see which one suits your needs.