grid-column
Places or spans an item across columns.
Grid placement controls where items sit inside the grid. You can span columns, create featured areas and name regions without changing HTML order.
.feature {
grid-column: span 2;
}
Layout
CSS Grid can auto-place items, but you can also place specific items using grid-column, grid-row or grid-template-areas.
Placement is useful for featured cards, dashboard panels, editorial layouts and page shells where some content needs more space.
The danger is creating a visual order that no longer matches the document order. Placement should enhance layout without confusing reading flow.
Places or spans an item across columns.
Places or spans an item across rows.
Tells an item how many tracks to cover.
Named layout regions that make page shells easier to read.
Visual model
Good layout CSS is not a pile of positions. It is a set of relationships: flow, axis, tracks, placement, layering, sticking and rhythm.
A larger card gets more visual weight.
A panel can stretch across rows.
Other items continue in normal grid flow.
Page shells can become readable maps.
Examples
.feature {
grid-column: span 2;
}
@media (max-width: 700px) {
.feature { grid-column: auto; }
}
.feature { grid-column: 1 / 4; }
.sidebar { grid-column: 4 / 5; grid-row: 1 / 5; }
/* No mobile reset */
Rules that matter
Layout work is where real content, real devices and real users expose weak assumptions. The goal is a structure that explains itself in code and survives change.
Give extra space to content that truly deserves visual weight.
grid-column: span 2 is often clearer than line numbers.
Desktop compositions rarely fit narrow screens unchanged.
Do not turn CSS placement into a reading-order puzzle.
Named areas make header/sidebar/main/footer layouts readable.
Too many exact line placements become hard to maintain.
Production thinking
Grid placement lets you design richer layouts without changing semantic HTML for visual reasons.
Visual placement should not confuse keyboard, screen reader or reading order expectations.
Use named areas for stable page shells and span-based placement for reusable card grids.
Semantic source order remains important even when CSS creates a more expressive visual layout.
Live code lab
The preview runs in an isolated iframe. Links and forms stay inside the practice area, so you can experiment without leaving the lesson.
Mini assignment
Practice assignment
Try it yourself
Self-check
Answer these questions before moving on. If the answer is vague, change the lab layout and inspect the result.
Senior audit upgrade
Grid can place items almost anywhere. That power should not confuse keyboard order, reading order or content priority.
grid-auto-flow: dense can visually backfill holes but may make visual order harder to predict.
Keep important content order in HTML, then use grid for layout expression.
Span cards for real hierarchy, not random decoration.