I have a table built with a column of links using the default browser rendering for anchors. There is a search which uses XSL to display search results. However, the XSL needs a specific CSS class to render the anchor elements.
I am trying to match the CSS class with the color the browser uses for anchor elements. However, through all this trial and error, I can’t get a match on shading. I initially tried color: blue in the CSS class but that’s not even close, it comes out purplish.
If I try to ignore color: in the CSS class, the link comes out black.
I guess what I was wondering if it’s possible to set the color in CSS to something like this…
color: Use browser anchor default
thank you.
>Solution :
The default colour of a link according to browser styles is: rgb(0, 102, 204)
If you don’t alter the CSS, this would be the default. If you are seeing something slightly purple, I’m guessing this is because it has been visited and receives dedicated styling.
This can be amended in your CSS by targeting a:visited { }
