Skip to main content

Flex Direction

Utilities for controlling the direction of flex items.

CSS Property:flex-direction
Classes:4

Flex Direction Classes

ClassCSS
flex-rowflex-direction: row;
flex-row-reverseflex-direction: row-reverse;
flex-colflex-direction: column;
flex-col-reverseflex-direction: column-reverse;

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 flex direction utilities at specific breakpoints using responsive prefixes.

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