217 entries · 17 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.

217 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

Pseudo-elements

Parts that are not in the HTML: content before and after an element, the first letter, the selection.

8

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

Colors and backgrounds

Text color, backgrounds, gradients and background images.

11

Effects

Shadows, filters, opacity, clipping and blend modes.

9

Transforms

Moving, rotating, scaling and perspective.

9

Transitions

Smoothly changing a value between two states.

6

Animations

Keyframes and every property that controls an animation.

10

Interaction and more

Cursor, selection, scrolling, lists, tables and fitting images.

17

At-rules

Media queries, container queries, custom fonts, cascade layers and feature queries.

8

Functions and units

calc(), clamp(), var(), gradients, color notations and length units.

14

Comparisons

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

7