The grid-auto-flow Property

The grid-auto-flow property controls how auto-placed items are inserted in the grid.

This grid has three columns and two rows.

"item3" spans two columns, where will the other items be inserted?.

grid-auto-flow: row

2
3
4
5
6

grid-auto-flow: row dense

The "dense" value fills holes in the grid:

1
2
3
4