- Rules, properties and values What CSS is, and how a rule is written.
- Where CSS lives style elements, stylesheets and the style attribute.
- Colors Color names, hex codes, rgb and backgrounds.
- Classes and ids Picking exactly the elements you want.
- Fonts and text Size, typeface, weight, alignment and spacing.
- The cascade When two rules disagree, who wins?
- Padding, border and margin Every element is a box. Here’s what it’s made of.
- Sizes and units width, height, px, %, rem and box-sizing.
- Block, inline and none How boxes flow, and how to hide one.
- Rows with Flexbox display: flex, gap and justify-content.
- Columns, centring and wrapping flex-direction, align-items and flex-wrap.
- Pages that work on phones max-width, media queries and responsive layouts.
Build your first styles today
CSS School is part of CurlyScript, the free game that teaches JavaScript. Your progress saves as you go.