30 selectors · 95 properties · 8 categories

CSS reference

CSS selectors, pseudo-classes and properties, with every value shown in a live example. The box model, Flexbox, Grid, typography, transitions and animations.

125 entries

Selectors

Selecting elements by tag, class, attribute and position in the document tree.

12

Pseudo-classes

States and positions of elements: hover, focus, checked, the nth element and validation.

18

Box model

Sizes, margins, padding, borders and overflow.

23

Layout and positioning

How an element is displayed, its position, stacking and floats.

16

Flexbox

One-dimensional layout of items in a row or a column.

15

Grid

A two-dimensional grid with rows, columns and named areas.

15

Typography

Fonts, sizes, line height, alignment and text decoration.

19

Comparisons

How similar properties and layout techniques differ and when to pick each one.

7