Ok, here's the solution:
First, the CSS:
div#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
div#navigation a{
display: block;
width: 170px;
height: 40px;
line-height: 36px;
color:#000000;
text-decoration: none;
background-image: url(images/button.jpg);
background-repeat:no-repeat;
background-position: left;
text-indent: 35px;
}
div#navigation a:hover{
background-position: right;
color: #fff;
}
div#navigation a#current {
background-position: right;
color: #fff;
}
- div#navigation ul {
- margin: 0;
- padding: 0;
- list-style-type: none;
- }
- div#navigation a{
- display: block;
- width: 170px;
- height: 40px;
- line-height: 36px;
- color:#000000;
- text-decoration: none;
- background-image: url(images/button.jpg);
- background-repeat:no-repeat;
- background-position: left;
- text-indent: 35px;
- }
- div#navigation a:hover{
- background-position: right;
- color: #fff;
- }
- div#navigation a#current {
- background-position: right;
- color: #fff;
- }
Go to
http://www.austinclassicalballet.com to see what I'm talking about. When you go there, the you'll see that the star next to the home button on the navbar is black, indicating that you're on the current page.
In order to do this, I created an id named 'current' (see definition above) and had to set the id in the index.htm doc. This is not a very elegant solution, but I'm not sure how else to do this without using a scripting language and/or server side includes. The site isn't big enough to warrant server side technology, so I just deal with the fact that I have to modify the nav bar code for each page.
On a similar note, I used templates in Dreamweaver so that I don't have to modify all the pages if I change something which they all share, like the banner or footer. Usually this is the case with the navbar, but since I had to set the id for each page, I created the navbar in an editable region in the template. I don't know why I'm telling you this...maybe I think I'm cleaver or something..