Ire Aderinokun 3/15/2016

On :not and Specificity

Read Original

This article delves into the CSS :not() pseudo-class, detailing its utility for styling elements by exclusion. It highlights a common pitfall where :not can override seemingly more specific selectors due to its effect on specificity calculation. The piece provides a clear breakdown of CSS specificity rules and includes code examples to illustrate the concepts.

On :not and Specificity

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser