Skip to content

Flexbox

Classes for managing flexbox containers and items.

ClassCSSDescription
.flexdisplay: flexEnables flexbox
.flex-colflex-direction: columnVertical direction
.flex-col-reverseflex-direction: column-reverseReverse vertical
.flex-rowflex-direction: rowHorizontal direction
.flex-row-reverseflex-direction: row-reverseReverse horizontal
.flex-wrapflex-wrap: wrapWrap items
.flex-nowrapflex-wrap: nowrapNo wrap
1
2
3
1
2
3
ClassCSSDescription
.items-startalign-items: flex-startTop edge
.items-centeralign-items: centerCenter
.items-endalign-items: flex-endBottom edge
.items-baselinealign-items: baselineBaseline
.items-stretchalign-items: stretchStretch
items-start
1
2
items-center
1
2
items-end
1
2
ClassCSSDescription
.justify-startjustify-content: flex-startLeft edge
.justify-centerjustify-content: centerCenter
.justify-endjustify-content: flex-endRight edge
.justify-betweenjustify-content: space-betweenBetween items
.justify-aroundjustify-content: space-aroundAround items
.justify-evenlyjustify-content: space-evenlyEvenly
justify-between
1
2
justify-center
1
2

Available values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, auto

ClassDescription
.gap-0No gap (0)
.gap-1Gap 4px
.gap-2Gap 8px
.gap-3Gap 12px
.gap-4Gap 16px
.gap-5Gap 20px
.gap-6Gap 24px
.gap-8Gap 32px
.gap-10Gap 40px
.gap-autoAuto gap
ClassDescription
.gap-y-*Vertical gap only (row-gap)
.gap-x-*Horizontal gap only (column-gap)
gap-1 (4px)
1
2
3
gap-4 (16px)
1
2
3
gap-8 (32px)
1
2
3
ClassCSSDescription
.flex-0flex: 0 0 autoNo stretching
.flex-autoflex: 1 1 autoAutomatic
.flex-1flex: 1Takes all space
.flex-noneflex: nonePrevent stretching
flex-0
flex-1 (stretches)
flex-0

Title

Description
$99.99
Centered
Flexbox centering