What is CSS grid layout?
DefinitionCSS 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. It works alongside Flexbox, which is designed for laying out items in a single row or column, and features such as subgrid and container queries make it even more flexible for component-based design. Its specification is developed by the CSS Working Group.
CSS grid layout resources
Compare: CSS grid layout vs. Flexbox
Topic: 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/.
- HTML link
<a href="https://glossary.io/css-grid-layout/">What is CSS grid layout?</a>
Published