In webkit you can do:
a {
color: -webkit-link;
}
a:active {
color: -webkit-activelink;
}
See this jsfiddle.
You may need to add !important
, depending on the priority of the other styles you're trying to override. Unfortunately, I don't know of any alternative for Internet Explorer or Firefox. You might just have to look up their colors and replicate them manually with CSS styles for those platforms specifically. For example, say IE and Firefox use #00f
and #30f
(they don't, but hypothetically):
a {
color: #00f;
color: -webkit-link;
}
a:active {
color: #30f;
color: -webkit-activelink;
}
Because IE and Firefox don't recognize the -webkit-prefixed colors, they'll just fall back to the previous colors declared.