in Linktipps

How to use CSS specificity

„There are four categories that define the specificity level of a selector: inline styles (these ones are sometimes used by javascript), ID’s, Classes and elements. How to measure specificity? Specificity is measured in points, with the highest points value being applied.

ID’s are worth a 100 points, Classes are worth 10 points, Elements are worth 1 point.“

  • Anderer Inhalt mit diesem Tag