Flex

Quickly manage the layout, alignment, and sizing of grid columns, navigation, components, and more with a full suite of responsive flexbox utilities.


Enable Flex

Apply display utilities to create a flexbox container and transform direct children elements into flex items.

I'm a flexbox container!
I'm an inline flexbox container!



Direction

Set the direction of flex items in a flex container with direction utilities.

Flex item 1
Flex item 2
Flex item 3
Flex item 1
Flex item 2
Flex item 3



Justify Content

Use justify-content utilities on flexbox containers to change the alignment of flex items on the main axis

Flex item 1
Flex item 2
Flex item 3
Flex item 1
Flex item 2
Flex item 3
Flex item 1
Flex item 2
Flex item 3
Flex item 1
Flex item 2
Flex item 3
Flex item 1
Flex item 2
Flex item 3
Flex item 1
Flex item 2
Flex item 3



Align Items

Use align-items utilities on flexbox containers to change the alignment of flex items on the cross axis.

Flex item 1
Flex item 2
Flex item 3
Flex item 1
Flex item 2
Flex item 3
Flex item 1
Flex item 2
Flex item 3
Flex item 1
Flex item 2
Flex item 3



Align Self

Use align-self utilities on flexbox items to individually change their alignment on the cross axis.

Flex item 1
Flex item 2
Flex item 3
Flex item 4



Fill

Use the .flex-fill class on a series of sibling elements to force them into widths equal to their content.

Flex item with a lot of content
Flex item
Flex item



Grow & Shrink

Use .flex-grow utilities to toggle a flex item’s ability to grow to fill available space.

Flex item with a lot of content
Flex item
Flex item



Auto Margins

Flexbox can do some pretty awesome things when you mix flex alignments with auto margins.

Flex item
Flex item
Flex item
Flex item
Flex item
Flex item



Order

Change the visual order of specific flex items with a handful of order utilities.

First flex item
Second flex item
Third flex item



Align Content

Use align-content utilities on flexbox containers to align flex items together on the cross axis.

Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item
Flex item



Media Object

Looking to replicate the media object component from Bootstrap 4? Recreate it in no time with a few flex utilities that allow even more flexibility and customization than before.

This is some content from a media component. You can replace this with any content and adjust it as needed.