CSS Grid
CSS Grid is a two-dimensional layout system for arranging content in rows and columns.
Grid defines tracks, lines, gaps and placement rules. It is suited to page sections, card collections and layouts where both horizontal and vertical structure matter.
Rows and columns as a layout system
Grid defines tracks, lines, gaps and placement rules. It is suited to page sections, card collections and layouts where both horizontal and vertical structure matter. In practical terms, CSS Grid belongs to the presentation and layout layer. Knowing that layer is important because it tells you what the term can change, what it cannot change, and where to look when something behaves unexpectedly.
Placing content on explicit tracks
A card collection can use grid-template-columns: repeat(3, minmax(0, 1fr)) to create three equal columns that can safely shrink.
Where grid placement becomes powerful
You do not need to memorize the term in isolation. It becomes useful when you can recognize it in the tool, browser, file or conversation where the concept is doing real work.
Grid is not simply a more advanced Flexbox
CSS Grid is a two-dimensional layout system for arranging content in rows and columns. By contrast, CSS Flexbox is a one-dimensional layout model for arranging items along a main axis and a cross axis. The two can appear in the same project, but they describe different parts of the work and should not be used as interchangeable labels.
The mistake: overcomplicating simple one-axis layouts
The common mistake is to use CSS Grid as if it also meant Flexbox. That blurs two separate decisions and usually sends troubleshooting in the wrong direction. A better test is practical: Use the Grid inspector to see tracks, gaps and item placement; min-width:0 can matter when content forces overflow.
Why two-dimensional control changes page composition
In day-to-day work, CSS Grid matters when rows and columns need coordinated two-dimensional placement. The practical value is not the vocabulary itself; it is being able to identify the right control, file, setting or decision when the concept becomes relevant.
A card collection can use grid-template-columns: repeat(3, minmax(0, 1fr)) to create three equal columns that can safely shrink. That example is useful because it turns the definition into something you can recognize, test and discuss with other people working on the same project.
Related terms worth learning next
Sources and further reading
Use these references when you need documentation-level detail, specifications or product-specific behavior beyond the plain-English explanation above.