Understanding Specificity in CSS

1 · · Sept. 3, 2019, midnight
Specificity in CSS refers to the how browsers determine the importance, relevance, and “seniority” of CSS styles. Here we’ll look at all the CSS styling types and use the company analogy to understand how competing styles get resolved. CSS Selector Overview There are multiple ways to select the elements you’re trying to style in CSS. Let’s start by reviewing all the options. Type Selectors: Select your intended element by using its element type. For example, to select all your <p> tags, use p i...