Forums | MacLife
You are not logged in.
#1 2009-09-19 4:57 pm
visited link css
Is there a css way to make a visited link be the same color as a virgin link without specifying the link color itself?
In her right hand Jenny held the Bible of her mother
Jenny had a pistol in the other
-- Steve Taylor
Offline
#2 2009-09-19 9:11 pm
- Stan
- Member

- From: Rock Island
- Registered: 2002-04-09
- Posts: 713
Re: visited link css
Why don't you want to specify the color? It seems awfully simple to just specify the same color for both.
Offline
#3 2009-09-20 3:06 am
Re: visited link css
Stan wrote:
Why don't you want to specify the color? It seems awfully simple to just specify the same color for both.
Because the color should be inherited - but visited and unvisited color is defined elsewhere in separate style sheet.
So to define them as the same in this style sheet for the specific use might not match what is already defined for un-visited links in other style sheet.
In her right hand Jenny held the Bible of her mother
Jenny had a pistol in the other
-- Steve Taylor
Offline
#4 2009-09-20 10:36 am
Re: visited link css
There's no way to override browser defaults (e.g., blue links, purple visited links) without specifying a color in CSS. Maybe you could examine the link color on page load with Javascript then apply a CSS rule to a:visited with the same color, but that seems excessive.
Basseq is me, John Whittet.
(Finishing the remainder of the thought expressed in the post has been left as an exercise for the reader.)
Offline
