(From this Codecademy lesson)
If i do
a.question-link:visited{
color: white;
}
Then also do
a:active{
color:#black;
}
the a:active
styling wont apply to Anchors with class “question-link” , why is that? Please explain
thanks
(From this Codecademy lesson)
If i do
a.question-link:visited{
color: white;
}
Then also do
a:active{
color:#black;
}
the a:active
styling wont apply to Anchors with class “question-link” , why is that? Please explain
thanks
Hi there,
Question. Do you have it written exactly like:
If so, #black is not a valid entry for color.
sorry i meant color:black, question still stands
Pseudo classes have the same specificity as classes. It could be affected by the order in the cascade, or if there is a combinator selector that ups the specificity.