Instruction: In this tutorial, we will create a real simple horizontal navbar using a list of links.

Carving out space for the horizontal navbar

Add links inside of div

Style links with CSS

/* Style buttons */
#nav a
{
background-color:#00F;
color:white;
border-right: 1px solid #FFF;
line-height: 1.2;
text-decoration: none;
padding: 0 25px;
}

/* Style hover state */
#nav a:hover
{
background-color:#09F;
}

NOTE: You may have notice spaces between the buttons. To create this problem, edit the links in the Code view by having ALL of the links on ONE line with NO white spaces between them:

<div id="nav">
    <a href="#">Home</a><a href="#">Products</a><a href="#">Services</a>...
</div>

BONUS: If you want the buttons background color to extend the complete page width , create a rule for the #nav container:

#nav {background-color:#00F;}