CSS specificity: Why isn't CSS specificity weight of 10 or more class selectors greater than 1 id selector? [migrated]
- by ajc
While going through the css specificity concept, I understood the fact that it is calculated as a 4 parts
1) inline (1000)
2) id (100)
3) class (10)
4) html elments (1)
CSS with the highest rule will be applied to the corresponding element.
I tried the following example
Created more than 10 classes
<div class="a1"> ....
…