RWDHTMLCSS.COM

Html & CSS Walkthrough

Previous Home Table of Contents Next

How to do a horizontal Navigation Menu

Demonstration.

First, I will walk through one on this page. Then on the next page, do the menu to use on our page.
This shows you how you turn these 5 links into the menu below. I thought I would throw this in on how to construct a menu and you are welcome to use this one instead of the next one.

The HTML

Here is the 5 links for our navbar and the navbar is below the links:

<div class="navbar">
<a href="http://hyperlinks.com">Home</a>
<a href="http://hyperlinks.com">Home</a>
<a href="http://hyperlinks.com">Home</a>
<a href="http://hyperlinks.com">Home</a>
<a href="http://hyperlinks.com">Home</a>
</div>
Home Home Home Home Home


The CSS explained


If you want to use this menu instead of the other one on the next page:
<div class="navbar">
<a href="http://hyperlinks.com" >Home</a>
<a href="http://hyperlinks.com" >Home</a>
<a href="http://hyperlinks.com" >Home</a>
<a href="http://hyperlinks.com" >Home</a>
<a href="http://hyperlinks.com" >Home</a>
</div>


Home Home Home Home Home


Previous Home Table of Contents Next