grid-auto-flow
This is the property that controls how items are automatically placed in the grid when their positions are not specified.
- row: (Default value) elements are placed in rows.
- column: Elements are positioned in columns.
- dense: tries to fill gaps by reordering later items.
Example
In this dynamic example, we can see how items are arranged according to the value of grid-auto-flow.
ResultLive
html
css