Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

CSS @scope: Simplifying Naming and Specificity Management

Kevin Powell via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the powerful @scope feature in CSS through this comprehensive 26-minute video tutorial. Learn why @scope is useful, how it fits into the cascade, and potential issues to watch out for. Discover how to avoid specificity problems, stop scope at specific elements, use selector lists, and understand the difference between & and :scope. Gain insights on inheritance, inline style blocks, and browser support for this new CSS feature. Follow along with timestamps and helpful links to enhance your understanding of @scope and improve your CSS skills.

Syllabus

- Introduction
- Why you might want scope in the first place
- Avoiding this issue using @scope
- Why this solves the problem - scope proximity
- Specificity still matters
- CSS Demystified
- Stop running into specificity issues thanks to scope
- Stop the scope at a specific element or elements
- You can have selector lists if you need to target several elements
- The difference between & and :scope
- Things will still inherit!
- Using inline style blocks
- Browser support

Taught by

Kevin Powell

Reviews

Start your review of CSS @scope: Simplifying Naming and Specificity Management

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.