IT lexicon › Web › CSS Grid

CSS Grid

Web På svenska → Updated: 2026-05-23

Modern CSS layout model for 2D design — rows and columns at the same time.

Speaks both horizontally and vertically, unlike Flexbox (1D). display: grid; grid-template-columns: 1fr 2fr;. Complement, not replacement, to Flexbox: big layouts → Grid, small components → Flexbox.

← Back to the lexicon