Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS inline css link color being inherited [SOLVED] Reply To: inline css link color being inherited [SOLVED]

#241043
Senff
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;
}