Tutorial 6 - Floating inline list items

Step 1 - Start with a simple unordered list

For this exercise, we want to take a simple unordered list and convert it into a horizontal navigation bar.

We will start with a simple unordered list. The UL is styled with an ID selector (id="navlist"). For this tutorial, an obvious name has been used to help illustrate the point, but any name can be used. However, it is better to name classes based on their meaning, rather than their appearance.

Go to Step 2 →



CSS CODE
None

HTML CODE
<ul id="navlist">
<li><a href="#">Item one</a></li>
<li><a href="#">Item two</a></li>
<li><a href="#">Item three</a></li>
</ul>
Other Max Design articles and presentations
Associated with webstandardsgroup.org