Forum Moderators: not2easy

Message Too Old, No Replies

How do I make the color of the current link different?

         

rakan

9:07 pm on Mar 28, 2006 (gmt 0)

10+ Year Member



I am making a CSS menu. I would like to make the color of the current link (the one pointing to the page the visitor is using) different from the others. I think this would be useful because then the visitor could look at the menu to determine which part of my site they're visiting. I googled my question and received a lot of instructions telling me to use the following CSS code

a:active{ color: #000000;}

However, this only makes the link change color when I click on it. I would like the link to remain that color as long as the person is viewing the page the menu link points to. Can this be done using CSS or do I have to edit the HTML? Thank you.

bedlam

9:12 pm on Mar 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try message 4 in this old thread [webmasterworld.com], and this thread too [webmasterworld.com]--lots of info there.

-b

rakan

9:27 pm on Mar 28, 2006 (gmt 0)

10+ Year Member



Thanks for the links. It looks like I found what I need.