.nav
{
width: 110px;
height: 30px;
background-position: 0px -30px;
}
.nav:hover
{
background-position: 0px 0px;
}
.nav #home
{
background: url(home.jpg);
}
That code probably does not work, since I really have no clue what I am doing any way.
Basically I have to make buttons for my web page. Each button has its own image file, and inside of the image file, the image size is 60px tall, with the first 30px being the highlighted state, the last 30px being the normal state. I have no idea how to use these to make a navigation bar using CSS. I have spent the last 4 days, about 3 hours a day picking through Google search results with no luck as to finding a solution for my specific need.
I would also like to have a class/selector for the current button selected, so that the highlighted state would appear as the normal state when the person is on that page. The text for each link is inside the image file, and I do not wish to use the Trifecta style button, as the text generated by those are horrid.
Any help or links to code or examples would be greatly appreciated.
Thanks

New Topic/Question
Reply



MultiQuote





|