Hi!
I hope this is an easy question
At the link below I've built the nav using CSS (see code below). How do I make the 'on' state stay active on each specific page? (i.e the 'about us' rollover image stays active on the 'about us' page)
http://www.nicnackpaddywack.com/nicn...y/aboutus.html
CSS:
/* -----------begin nav layout styles-------------- */
#navigation {
width: 455px;
height: 116px;
margin: 0;
padding: 0;
float:left;
}
#nav_aboutus, #nav_aboutus a{
width:95px;
height:116px;
float:left;
background:url(../images/nav_aboutus.jpg) top left no-repeat;
}
#nav_portfolio, #nav_portfolio a {
width:95px;
height:116px;
float:left;
background:url(../images/nav_portfolio.jpg) top left no-repeat;
}
#nav_contactus, #nav_contactus a {
width:107px;
height:116px;
float:left;
background:url(../images/nav_contactus.jpg) top left no-repeat;
}
#nav_jointeam, #nav_jointeam a {
width:158px;
height:116px;
float:left;
background:url(../images/nav_jointeam.jpg) top left no-repeat;
}
#nav_aboutus a:hover {
width:95px;
height:116px;
background:url(../images/nav_aboutus.jpg) no-repeat 0px -116px ;
}
#nav_portfolio a:hover {
width:95px;
height:116px;
background:url(../images/nav_portfolio.jpg) no-repeat 0px -116px;
}
#nav_contactus a:hover {
width:107px;
height:116px;
background:url(../images/nav_contactus.jpg) no-repeat 0px -116px;
}
#nav_jointeam a:hover {
width:158px;
height:116px;
background:url(../images/nav_jointeam.jpg) no-repeat 0px -116px;
}
/* -----------end nav layout styles-------------- */


Reply With Quote
Bookmarks