Skip to Content
HTML and CSS Advanced: Styles That Hold Up in Production
Advanced
0 likes
Courses
HTML and CSS Advanced: Styles That Hold Up in Production

Check Yourself: Architecture That Scales

Five scenario questions on layers, specificity and when to skip a framework. If you miss more than one, reread the lesson that covers it.

Course content

Sign in to save your progress.

Course Home
1. A vendor stylesheet uses #page .toolbar a.btn.btn-primary, and your new .btn rule loses to it. You cannot edit the vendor file. What is the cleanest fix with cascade layers?
2. You wrap reset.css in @layer reset but leave the rest of the site's CSS unlayered. A reset rule now loses to every site rule, even a weak one. What did you forget?
3. Two !important declarations compete: one in the base layer, one in the later utilities layer. Which wins?

About

Five scenario questions on layers, specificity and when to skip a framework. If you miss more than one, reread the lesson that covers it.

Duration
5 min
Last update
08/13/2026
Was this helpful?
​ 0 ​ 0

Comments (0)

Sign in to comment

No comments yet.