Grid item
A grid item is a child of a CSS Grid container that participates in its two-dimensional grid layout.
CSS in Depth, Second Edition
A grid item is an element placed into a CSS Grid layout and assigned to one or more grid areas.
- How it is used
- Uses grid items as the page regions, photographs, or cards arranged within a CSS Grid container.
- How deep it goes
- Works through item placement, spanning, implicit rows, dense auto-placement, and the distinction between stretching an item and stretching its contents.
- Examples
- Builds a six-box grid, a page with spanning regions, and a photography portfolio with enlarged featured images.
- What you can do after
- Build it from scratch: place and span grid items, or let automatic placement accommodate an unknown number of them.
Web Design Playground, Second Edition
A grid item is a child of a grid container that participates in its two-dimensional grid layout.
- How it is used
- Identifies the children arranged across rows and columns when a parent becomes a CSS grid container.
- How deep it goes
- Defines automatic item creation, then works through cell assignment, numbered-line placement, spans, and alignment.
- Examples
- Uses a parent div with six child divs, a display: grid rule, and CSS declarations for spanning columns and rows.
- What you can do after
- Apply it via CSS Grid Layout to make child elements grid items, place them across cells, and align them.
Read how Web Design Playground, Second Edition explains grid item →
Also covered in
What to know first
- normal flowNormal flow is the browser’s ordinary layout process, arranging elements according to document order and their formatting behavior without out-of-flow positioning.
Related concepts
- grid areaconfigured by · A grid area is a rectangular region of one or more CSS Grid cells, optionally identified by a name for layout placement.
- grid containerpart of · A grid container is an element whose display mode establishes a CSS Grid formatting context for laying out its child elements as grid items.
- celluses · A cell is an individual addressable position or bounded region in an organized structure that stores or represents a value, state, or associated data.
Questions about grid item
What is grid item?
A grid item is a child of a CSS Grid container that participates in its two-dimensional grid layout.
Which Manning books explain grid item?
CSS in Depth, Second Edition and Web Design Playground, Second Edition.
What should I know before learning grid item?
Manning books that teach grid item usually introduce normal flow first.
What is grid item part of?
Grid item is part of grid container. A grid container is an element whose display mode establishes a CSS Grid formatting context for laying out its child elements as grid items.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

