Save 45% for a limited time.

Get access to all courses and lessons on egghead today.

Autoplay

    Utilize Selector Specificity to Control Applied Styles

    Tyler ClarkTyler Clark

    When selectors conflict, the browser needs to know which property / value combination to paint. Specificity is one of the core concepts of CSS and is important to understand in order to implement deterministic styles. Let's look at the specificity rules and learn the power of each selector.

    cssCSS
    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Discuss

    Discuss