Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Active link

Status
Not open for further replies.

trc

MIS
Nov 27, 2000
126
CA
I might be mistaken but if I use the following CSS then should the link to the page that is open should be a different color. This is not the case. Can anyone tell me why? Thanks in advance.

A.navLink:link {
color:#FF7D00;
font-weight: bold;
text-decoration: none;

}
A.navLink:visited {
color:#FF7D00;
font-weight: bold;
text-decoration: none;
}
A.navLink:hover {
color:#336699;
font-weight: bold;
text-decoration: none;
}

A.navLink:active {
color:#FF9900;
font-weight: bold;
text-decoration: none;
}

************
My purpose in life is to show others what not to do.
<!--Caution, dates on calendar are closer then they appear.-->
 
Good point.

Here is a link that I used.

<a href="about_mngmt.htm" class="navLink">Management</a>

Trc

************
My purpose in life is to show others what not to do.
<!--Caution, dates on calendar are closer then they appear.-->
 
AFAIK :active affects currently engaged link (e.g. during click), not links that point to current page.

Btw. the difference between FF7D00 and FF9900 is barely recognizable with blue :hover between.
 
vongrunt. Thank you. That makes it clear. Time for a javascript solution.

************
My purpose in life is to show others what not to do.
<!--Caution, dates on calendar are closer then they appear.-->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top