CSS Specificity

  1. When selectors have an equal specificity value, the latest rule is the one that counts.
  2. When selectors have an unequal specificity value, the more specific rule is the one that counts.

Specificity: Basic Principles

--

--

--

Aspiring Web Developer and Travel Enthusiast

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Custom serialization using your own personalized annotations and Java reflection in Spring

TryHackMe Write-up — HaskHell

[Technical] Documentation As Code With DacDoc

SPACE HEROES UPDATE 1.2

SOLID Principles: Liskov Substitution Principle (LSP)

How companies are benifited from AWS

When “One For the Price of Two” is Both Good and Desirable!

CS373 Fall 2021: Blog #11

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Austin Turturro

Austin Turturro

Aspiring Web Developer and Travel Enthusiast

More from Medium

How to learn HTML and CSS as a Newbie?

CSS Lesson 1: Introduction to CSS Styling

Two Top Tier TTs

3D Bounce loading animation using CSS -Rare Programmer