Skip to main content

Grid Auto Flow

Utilities for controlling how elements in a grid are auto-placed.

CSS Property:grid-auto-flow
Classes:5

Grid Auto Flow Classes

ClassCSS
grid-flow-rowgrid-auto-flow: row;
grid-flow-colgrid-auto-flow: column;
grid-flow-densegrid-auto-flow: dense;
grid-flow-row-densegrid-auto-flow: row dense;
grid-flow-col-densegrid-auto-flow: column dense;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

Responsive Variants

Apply grid auto flow utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:grid-flow-row
768px+md:md:grid-flow-row
1024px+lg:lg:grid-flow-row
1280px+xl:xl:grid-flow-row
1536px+2xl:2xl:grid-flow-row