Match elements by their role and state without brittle document paths. Each lesson makes one concrete CSS decision and names its verification cost.
Lessons
- CSS combinators: select relationships without encoding every wrapper
- CSS pseudo-classes: style interaction states without hiding them
- CSS :is and :where: group selectors without accidental weight
- CSS :has: style a parent from a meaningful child state
- CSS structural selectors: style repeated items without hard-coded positions
Continue
Common Mistakes
- Do not carry a sample rule into production without checking its containing markup.
- Do not skip keyboard, zoom, or long-content checks when a visual result looks correct.
