Question about CSS pseudo-classes and specifity

(From this Codecademy lesson)

If i do


color: white;


Then also do




the a:active styling wont apply to Anchors with class “question-link” , why is that? Please explain

thanks :smiley:

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.