Flexbox

Flex Direction

Utilities for sets direction of flex items.


Variant

Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited

API

classcss
flex-rowflex-direction: row
flex-row-reverseflex-direction: row-reverse
flex-columnflex-direction: column
flex-column-reverseflex-direction: column-reverse

Usage

Set child elements in flex-column direction.

1
2
3
<!-- parent -->
<div class="flex ... flex-column">
<!-- child -->
<div>...</div>
<div>...</div>
<div>...</div>
</div>
HTML
.dummy-parent {
@extend
.flex,
.flex-column;
}
SCSS

Set child elements in flex-row direction.

1
2
3
.dummy-parent {
@extend
.flex,
.flex-column;
}
SCSS

Set child elements in flex-row-reverse direction.

1
2
3
.dummy-parent {
@extend
.flex,
.flex-column;
}
SCSS

Set child elements in flex-column-reverse direction.

1
2
3
.dummy-parent {
@extend
.flex,
.flex-column;
}
SCSS