HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

grid-auto-flow

Description

The grid-auto-flow property for CSS specifies exactly how auto-placed items get flowed into the grid.

Syntax

CSS

grid-auto-flow: value;

JS

object.style.gridAutoFlow = "value";

Values

<'grid-auto-flow'> = [ row | column ] || dense
row

Places items by filling each row in turn, adding new rows as necessary.

column

Places items by filling each column in turn, adding new columns as necessary.

dense

Attempts to fill in holes earlier in the grid if smaller items come up later.

Initial

row

Examples

1 · column

2 · column dense

3 · row

4 · row dense

5 · JS