One page

CSS cheat sheet

What to keep at hand. If a line is not clear, go back to the matching lesson in the course.

Open the course: CSS: getting started

Rule

WhatHow
Class.card { }
Cascadelower + stronger specificity
Boxbox-sizing: border-box
Tokenvar(--ink)

Layout

WhatHow
Rowdisplay: flex; gap: 1rem
Griddisplay: grid; repeat(auto-fit, minmax(16rem, 1fr))
Absoluterelative on the parent
Screen width@media (min-width: 40rem)

Other cheat sheets