Forum Moderators: not2easy
a.class{} trumps a{}, even is a{} is specified second. Same for a#id{} trumping a.class{} and a{}, etc. You can also bring containers into the mix for a tighter focus: div#navbar a{} usually beats a.class{} (I think). I don't usually do that, relying on classes and IDs. I use containers all the time to specify CSS.
In any case, the answer is in specificity. do a bit of looking up on it.