---
title: "What is CSS grid layout?"
term: "CSS grid layout"
description: "CSS grid layout is a two-dimensional layout system in CSS that lets developers arrange page content into rows and columns at the same time, controlling the size and placement of items within a grid."
url: "https://glossary.io/css-grid-layout/"
published: "2026-11-22T20:33:31.009Z"
updated: "2026-11-22T20:33:31.009Z"
aliases:
  - "CSS Grid"
topics:
  - "Web development"
wikidata: "https://www.wikidata.org/wiki/Q42320210"
---

# What is CSS grid layout?

**Definition:** CSS grid layout is a two-dimensional layout system in CSS that lets developers arrange page content into rows and columns at the same time, controlling the size and placement of items within a grid.

**Also known as:** CSS Grid

With grid layout, a developer sets display: grid on a container, defines its columns and rows with properties such as grid-template-columns, and then places child elements into specific cells or named areas, or lets the browser place them automatically. Units like fr and functions like minmax() and repeat() make it possible to build responsive layouts with little code and without floats, tables, or extra wrapper elements.

Grid shipped in all major browsers in 2017 and is now a standard part of modern [CSS](https://glossary.io/css/). It works alongside [Flexbox](https://glossary.io/flexbox/), which is designed for laying out items in a single row or column, and features such as subgrid and [container queries](https://glossary.io/css-container-queries/) make it even more flexible for component-based design. Its specification is developed by the CSS Working Group.

## CSS grid layout resources

- [CSS grid layout on Wikipedia](https://en.wikipedia.org/wiki/CSS_grid_layout)

## Related terms

- [CSS](https://glossary.io/css/)
- [CSS container queries](https://glossary.io/css-container-queries/)
- [Flexbox](https://glossary.io/flexbox/)
- [CSS Working Group](https://glossary.io/css-working-group/)
- [Igalia](https://glossary.io/igalia/)
- [Jen Simmons](https://glossary.io/jen-simmons/)

## Compare

- [CSS grid layout vs. Flexbox](https://glossary.io/compare/css-grid-layout-vs-flexbox/): CSS grid layout arranges items in two dimensions, rows and columns at once, from a structure you define on the container. Flexbox arranges items in one dimension, a row or a column, and lets their content decide how space is shared. Most layouts use both.

**Topic:** [Web development](https://glossary.io/topics/web-development/)

## Cite this definition

- APA: What is CSS grid layout? (2026, November 22). Glossary. https://glossary.io/css-grid-layout/
- MLA: “What Is CSS grid layout?” Glossary, Coywolf, 22 Nov. 2026, glossary.io/css-grid-layout/.
- Chicago: “What Is CSS grid layout?” Glossary. Coywolf. November 22, 2026. https://glossary.io/css-grid-layout/.

Published November 22, 2026.
