Home › Forums › CSS › inline css link color being inherited [SOLVED] › Reply To: inline css link color being inherited [SOLVED]
April 28, 2016 at 8:27 am
#241043
Participant
When you have this:
.whitelinks a, a:link, a:visited, a:hover, a:active {
color:white;
}
It’s expected that all links on the page become white with this code. Do you only want the white links if they are in a specific element (e.g. with class “whitelinks”)? Without seeing your page it’s hard to tell, but you might just want something like this, which may be what you meant to do:
.whitelinks a:link,
.whitelinks a:visited,
.whitelinks a:hover,
.whitelinks a:active {
color:white;
}