📖 CSS Reference

Complete CSS Reference

Every CSS property, selector, function, at-rule, and unit — with syntax, allowed values, examples, and browser support. The only CSS reference you need.

🔍
🔎 No properties matched your search.

Visual & Colour

Backgrounds, borders, shadows, gradients

🖼️
background
Shorthand for background-color, background-image, background-position, background-size, and more.
View →
border / border-radius
Control element borders including width, style, colour, and corner rounding with border-radius.
View →
🌑
box-shadow
Add one or multiple shadow effects around an element's frame with offset, blur, spread, and colour.
View →
🎨
color
Set the foreground colour of text and text decorations. Accepts hex, RGB, HSL, named colours, and more.
View →
👁️
opacity
Set the transparency level of an element and all its children. Range: 0 (invisible) to 1 (fully visible).
View →
filter
Apply graphical filters: blur, brightness, contrast, grayscale, hue-rotate, invert, saturate, and sepia.
View →

Layout

Flexbox, Grid, position, display

📦
display
Control how an element is rendered — block, inline, flex, grid, none, inline-flex, and more.
View →
↔️
Flexbox Properties
All flexbox properties: flex-direction, align-items, justify-content, flex-wrap, gap, flex-grow, and more.
View →
CSS Grid Properties
All grid properties: grid-template-columns, grid-template-rows, grid-area, gap, auto-fill, fr units.
View →
📌
position
Control element positioning: static, relative, absolute, fixed, and sticky — with top, left, right, bottom.
View →
📚
z-index
Control the stacking order of positioned elements. Understand stacking contexts and how z-index really works.
View →
✂️
overflow
Control what happens when content exceeds an element's box: visible, hidden, scroll, auto, clip.
View →

Typography

Fonts, text, spacing

🔤
font
Shorthand for font-family, font-size, font-weight, font-style, font-variant, and line-height.
View →
📝
text properties
text-align, text-decoration, text-transform, text-overflow, white-space, letter-spacing, and line-height.
View →
--x
CSS Custom Properties
CSS variables with --property-name syntax. Scope, inheritance, fallbacks, and using var() in calculations.
View →

Animation & Transform

Motion, transitions, 2D & 3D transforms

transition
Animate property changes smoothly. Control duration, timing function, delay, and which properties transition.
View →
🎞️
animation / @keyframes
Create complex CSS animations with @keyframes. Control name, duration, timing, delay, iterations, and fill-mode.
View →
🔄
transform
Apply 2D and 3D transformations: translate, scale, rotate, skew, perspective, and matrix.
View →

The Most Useful CSS Reference for Web Developers

CSS has over 500 distinct properties across layout, typography, animation, colour, and more. No developer memorises all of them — the skill is knowing where to look and understanding how they relate to each other. Our CSS reference is built for fast lookup during development, not as an academic specification document.

How This Reference Is Structured

Properties are grouped by function (visual, layout, typography, animation) rather than alphabetically, because CSS properties interact most with others in the same category. Each entry includes syntax, allowed values, practical examples, and notes on common mistakes and browser quirks.

CSS Variables & Modern CSS

This reference covers modern CSS including custom properties (CSS variables), container queries, the :has() selector, cascade layers (@layer), logical properties, and CSS nesting — the features that define how CSS is written in 2024 and beyond.