Master Code
On The Go

Learn. Practice. Build.

Home › Code Snippets › CSS Snippets › Reference

CSS Reference

CSS Property Reference

Every CSS property explained with syntax, values, examples, and browser support.

Last updated: October 2026

What this is: A complete, alphabetical reference of CSS properties. Each page covers syntax, every value, live examples, common mistakes, and browser support.

📚 All CSS Reference Pages

🎨

color

Foreground text color. Hex, RGB, HSL, OKLCH, and named colors.

Read Reference →
📐

display

Block, inline, inline-block, flex, grid, none. The layout control property.

Read Reference →
📏

flex

The one-dimensional layout system. Rows, columns, alignment, and distribution.

Read Reference →
📐

grid

The two-dimensional layout system. Rows, columns, spanning, and named areas.

Read Reference →
📍

position

static, relative, absolute, fixed, and sticky. The full positioning system.

Read Reference →
📏

margin

Outer spacing. Shorthand, auto centering, negative margins, and collapse.

Read Reference →
📏

padding

Inner spacing. Shorthand, box-sizing, and button accessibility.

Read Reference →
🖼️

border

Width, style, color, and border-radius. Every style and shorthand.

Read Reference →
📝

font-size

px, em, rem, vw, and clamp(). Accessible typography rules.

Read Reference →
🖼️

background

Colors, images, gradients, and multiple layers. The complete shorthand.

Read Reference →
📏

width & height

max-width, box-sizing, aspect-ratio, and every sizing unit.

Read Reference →
📍

z-index

Stacking order, stacking contexts, and how to fix z-index problems.

Read Reference →
📝

text-align

left, right, center, justify, start, end. Horizontal text alignment.

Read Reference →
🎨

box-shadow

Offset, blur, spread, inset, and elevation systems. Focus rings too.

Read Reference →
🔄

transform

translate, rotate, scale, skew, 3D. The foundation of CSS animation.

Read Reference →
🎬

transition

Duration, easing, delay. Smooth state changes for any UI.

Read Reference →
← CSS Snippets Hub