active link color not working

I have a subnav on a page that I want the active link to change colors. But my active link tag in my css isn't working, it's staying the visited link color when on that individual page. Any suggestions?

.subnav
{
color: #B4CBD7;
font-family: verdana, helvetica;
font-size:11px;
font-weight: normal;
line-height: 18px;
}


.subnav A:link
{
color: #B4CBD7;
text-decoration: none;
}

.subnav A:visited
{
color: #999999;
text-decoration: none;
}

.subnav A:hover
{
color: #CCCCCC;
text-decoration: underline;
}

.subnav A:active
{
color: #84D0EF;
text-decoration: underline;
}Try reordering them.


.subnav A:link
{
color: #B4CBD7;
text-decoration: none;
}

.subnav A:visited
{
color: #999999;
text-decoration: none;
}

.subnav A:active
{
color: #84D0EF;
text-decoration: underline;
}

.subnav A:hover
{
color: #CCCCCC;
text-decoration: underline;
}nope, that didn't workOkay, put them back in the order you had them. Then explain to me just how you are making a link active.


.subnav A:link
{
color: #B4CBD7;
text-decoration: none;
}

.subnav A:visited
{
color: #999999;
text-decoration: none;
}

.subnav A:hover
{
color: #CCCCCC;
text-decoration: underline;
}
.subnav A:active
{
color: #84D0EF;
text-decoration: underline;
}I thought by default, if you were on a page say contact.php, and that link in the subnav would be the active link."Active" means the mouse is over it and the button is down.Ohhhh, i always thought active meant the page you were on... is there a way to do that with a link style?Fang posted a nice one today. Give the body an id and style accordingly.
 
Back
Top