Discover and read the best of Twitter Threads about #navbar

Most recents (3)

A quick glance at "CSS Specificity"

Thread🧵
🔶 CSS Specificity

If there are two or more CSS rules that point to the same element, the selector with the highest specificity value will "win", and its style declaration will be applied to that HTML element.
There are four categories that define the specificity level of a selector:

1. Inline styles - Example: <h1 style="color: pink;">

2.IDs - Example: #navbar
Read 7 tweets
⚡ All You Need to Know About CSS Specificity ⚡

A thread🧵👇🏼
❓ What is Specificity?

📌 If there are two or more conflicting CSS rules that point to the same element, the browser follows some rules to determine which one is most specific and therefore wins out.
🎯 Specificity Hierarchy

⇢ Every CSS selector has its place in the specificity hierarchy.

⇢ Four categories define the specificity level of a selector:

✤ Inline styles

⤷ Example: <h1 style="color: pink;">

✤ IDs ⤷ Example: #navbar
Read 11 tweets
⚡ All You Need to Know About CSS Specificity ⚡

A thread🧵👇🏼 Image
❓ What is Specificity?

📌 If there are two or more conflicting CSS rules that point to the same element, the browser follows some rules to determine which one is most specific and therefore wins out.
🎯 Specificity Hierarchy

⇢ Every CSS selector has its place in the specificity hierarchy.

⇢ Four categories define the specificity level of a selector:

✤ Inline styles

⤷ Example: <h1 style="color: pink;">

✤ IDs ⤷ Example: #navbar
Read 11 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!