Kevin Powell explains how CSS specificity is calculated from tags, classes, IDs and inline styles, how !important factors in, and how to avoid specificity conflicts. The video is aimed at newer developers learning CSS.
What you’ll learn
✓Calculate the specificity of a CSS selector
✓Predict which CSS rule wins when selectors conflict