When i do navigations, it's always with an unorderedlist but with images as the link.
Same thing can be done say with a heading..
Here is the example for an unordered list:
Code:
<ul id="nav">
<li><a href="" id="homepage">Homepage</a></li>
<li><a href="" id="pageone">Page one</a></li>
</ul>
Then for CSS you need to set the initial UL and LI properties:
Code:
#nav {
list-style-type: none;
}
#nav li a {
display: block;
overflow: hidden;
padding: #px 0 0;
width: #px;
height: 0;
}
And here is the CSS for the initial button and rollover button:
Code:
#nav li a#homepage {
background: url('images/homepage.gif') no-repeat 0 0;
}
#nav li a#homepage:hover {
background: url('images/homepage-over.gif') no-repeat 0 0;
}
#nav li a#pageone {
background: url('images/pageone.gif') no-repeat 0 0;
}
#nav li a#pageone:hover {
background: url('images/pageone-over.gif') no-repeat 0 0;
}
Padding is where you set the height, width is width.
I tend to use one image for all buttons to save from loading and that's where the two zero's at the end come in, changing it to #px to set the spot in the image the button resides (say if the button was 150 pixels wide, and you had five buttons, the first button's normal state stays at zero, then the rollover would be at -750px).