This article was originally published on August 11, 2008. I am updating it now to fix some inaccuracies in how this concept was presented.
I’ve never specifically covered this subject before. (rimshot!)
The best way to explain it is to start with an example of where specificity gets confusing and perhaps doesn’t behave like you would expect. Then we’ll take a closer look at how to calculate the actual specificity value to determine which selector takes precedence.… Read article “Specifics on CSS Specificity”