CSS Specificity Q&A: Can lots of classes override an ID selector in CSS?

preview_player
Показать описание
CSS Specificity Q&A: Can lots of classes override an ID selector in CSS?

Рекомендации по теме
Комментарии
Автор

She’s right, however 10 classes are accumulated to 100, the equivalent of an id’s specificity. Add a one such as a tag, or another class and it would win over it.

PropelWebDev
Автор

So much talk for a simple question and answer

everusa