Read about specificity:
- Simple explanation
- More in depth explanation
Short answer: if two selectors have the same specificity, the last one to be declared wins.
Read about specificity:
Short answer: if two selectors have the same specificity, the last one to be declared wins.