Forum Moderators: open
onclick, I want the tab to change to its active state(a green tab) however I am having a lot of trouble figuring this out. I know I will need a green tab image for the background, but here's my code, hopefully someone can point me in the right direction:
<div id="nav">
<ul>
<li id="current"><a href="main.html" target="window">Home</a></li>
<li id="current"><a href="owners.html" target="window">Site Owners</a></li>
<li id="current"><a href="services.html" target="window">Services</a></li>
<li id="current"><a href="contact.html" target="window">Contact Us</a></li>
<li id="current"><a href="aboutus.html" target="window">About Us</a></li>
</ul>
<!-- navigation ends-->
</div> #nav {
clear: both;
padding: 0;margin: 0;
width: 952px;
height: 50px;
background: #988060 url(nav.gif) no-repeat;
}
#nav ul {
float: left;
list-style: none;
margin: 5px 0 0 0;
height: 45px;
padding: 0 0 0 40px;
}
#nav ul li {
float: left;
margin: 0; padding: 0 0 0 10px;
}
#nav ul li a {
float: left;
margin: 0;
padding: 0 15px 0 5px;
color: #FFF;
font: bold 15px/45px 'Trebuchet MS', 'Helvetica Neue', Arial, sans-serif;
text-decoration: none;
}
#nav ul li a:hover,
#nav ul li a:active {
color: #E7FAA9;
}
#nav ul li#current {
background: transparent url(left-tab.gif) no-repeat;
}
#nav ul li#current a {
color: #4B3D2C;
background: transparent url(right-tab.gif) no-repeat right top;
}