-
Hi all!
I am using a style sheet in my pages, and my problem is that I would still like some links to light up even after they have been visited.
Right now the link itself is shown in dark green. Then when a user hovers over it, it gets lighter green, and when a user has clicked on the page, the link gets dark green again. Now when a user hovers over the same link again, it stays dark green, where I would like for it to turn light green again, so it's more obvious for the user that it's a link.
Does anybody have any idea on how to achieve that? Thanx!
-
HTML Site
This is a fantastic HTML site for beginners:
http://htmlgoodies.earthweb.com/
I'm positive you'll find the answer there.
-
Okay, thanx for the link, but does anybody have an answer, without me having to read the entire page the link refers to? (Not that I don't think it would be useful, coz I certainly do, atm I just don't have the time to)
-
You can use a CSS class to refer to the links:
example:
Code:
A.first {put your first set of styles here}
A.second {put your second set of styles here}
You can then refer to the classes
like this:
Code:
<a CLASS ="first" HREF = "http://www.some.url">click me</a>
<a CLASS = "second" HREF = "http://www.some.url">click me too</a>
-
Thanx again for the reply, but not that's not really what I'm looking for. My problem is that after a user has visited a link on one of my pages, I still want it to light up when I hover over it, instead of constantly remaining the color specified under the "visited" part of the link class definition in my css.
-
If I need this sort of functionality, I typically will set BOTH visited and new links to the same class.
-
I agree with monte96....Marcel, try experimenting
with the link properties, active and visited.