deactivate a.link: visited property of link style

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

deactivate a.link: visited property of link style

Post by kendall »

Hello,

I have created a css style a class in which an a.link is one colour and on a mouseover it is inverted (use of changing cell color). however this affect is spolied when the a.link : visited style property is enforced. now where i create one or not the visited style property is enforced. Is there anyway to disable this style property so as to have the a.link and link.hover effect enforced.

Note: im not worried with downward compatability.


Kendall
User avatar
trollll
Forum Contributor
Posts: 181
Joined: Tue Jun 10, 2003 11:56 pm
Location: Round Rock, TX
Contact:

Post by trollll »

If you set a:link and a:visited to the same color it should work fine. So you could have something like:

Code: Select all

a:link		{color: #666666;}
a:visited	{color: #666666;}
a:active	{color: #999999;}
a:hover		{color: #000000;}
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

or

Code: Select all

a {color: #999999;} 
a:hover {color: #000000;}
Post Reply