Skip to content

Spanning columns

Simple grid’s like we looked at in the last lesson are very useful, but a little limited. One of the reasons that Grid is so powerful is the ability to have grid items span across multiple cells.

There are a few different ways that we can span columns, with the simplest option being the span keyword.

.grid-item {
/* span across 3 grid cells */
grid-column: span 3;
}