grid-flow-row/col/dense — direction and hole-filling for implicit tracks. This family contains 5 generated classes in Nakshora 3.0.

Classes#

ClassGenerated CSS
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;

Example#

example
html
<div class="grid grid-flow-col auto-cols-max gap-4">Horizontal scroller</div>

Responsive & variants#

Every class here accepts screen prefixes (sm:xl:) and state variants — md:hover:p-4 style stacks compile to a single media query. See responsive/index|Responsive design and variants/index|Variants.

Best practices#

  • grid-flow-col + auto-cols-max = horizontal snap rails
  • dense backfills gaps at the cost of visual order

utilities/flexbox/flex-direction|Flexbox · utilities/spacing/gap|Gap