liveBook · Manning

Grid line

A grid line is a horizontal or vertical boundary in a CSS Grid layout that defines track edges and item placement positions.

How 2 Manning books explain it

CSS in Depth, Second Edition

A named grid line is a CSS Grid line assigned one or more author-defined names for referring to grid positions.

How it is used
Uses named grid lines to place items when numbered boundaries become difficult to track.
How deep it goes
Works through bracketed names, multiple names per line, repeated names, and placement with start and end boundaries.
Examples
Uses a two-column template and a page layout with named column boundaries and repeated row names.
What you can do after
Apply it via CSS Grid to name track boundaries and place items using those names.

Read how CSS in Depth, Second Edition explains grid line →

Math for Web Design

A grid line is a CSS Grid line that defines a row or column boundary and provides a position for placing grid items.

How it is used
Positions grid items between numbered row and column boundaries.
How deep it goes
Works through one-based numbering, span arithmetic, negative indexing, and the limit imposed by implicit tracks.
Examples
Uses a three-column, two-row grid, a three-track span, full-width rows, and an implicit-row placement failure.
What you can do after
Apply it via CSS Grid to place and span items, and diagnose failed negative-index placement on implicit rows.

Read how Math for Web Design explains grid line →

Also covered in

What to know first

Related concepts

Questions about grid line

What is grid line?

A grid line is a horizontal or vertical boundary in a CSS Grid layout that defines track edges and item placement positions.

Which Manning books explain grid line?

CSS in Depth, Second Edition and Math for Web Design.

What should I know before learning grid line?

Manning books that teach grid line usually introduce CSS Grid first.

What is the difference between grid line and grid area?

A grid line is a horizontal or vertical boundary in a CSS Grid layout that defines track edges and item placement positions. A grid area is a rectangular region of one or more CSS Grid cells, optionally identified by a name for layout placement.

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.