Trying to resolve CSS conflicts can sometimes be a frustrating task. Figuring out why a certain style gets applied over another is something all web developers have had to do at some point. Fortunately, this can be quite simple with a basic understanding of “CSS specificity”. Specificity describes a set of rules applied to CSS selectors that determine which style is applied to an element.
In this short course, you’ll learn how specificity works and how you can calculate it so you can avoid a lot of headaches in your future projects.