Flexbox
Responsive utility classes to set various flexbox CSS properties. All CSS classes can be used with the display-flex class as well as flex-row.
Flex Direction
The flex-direction property controls the direction of the main flex axis.
Available values:
Examples
Row - default
Column
Flex Wrap
The flex-wrap property controls whether flex children will wrap to a next line when there is no longer enough space.
Available values:
Examples
Nowrap - default
Wrap
Justify Content
The justify-content property specifies how flex items are aligned along the main axis of the flex container after any flexible lengths and auto margins have been resolved.
Available values:
Examples
Justify Start - default
Justify End
Justify Center
Justify Between
Justify Around
Align Items
The align-items property specifies the default alignment for items within the flex container.
Available values:
Examples
Align Stretch - default
Align Start
Align End
Align Center
Align Baseline — items line up on the baseline of their text rather than on their boxes, so a number and its label sit level however differently they are sized:
Align Self
The align-self property specifies the alignment on a single item within the flex container.
Available values:
Examples
Align Self Auto - default
Align Self Stretch
Align Self Start
Align Self End
Align Self Center
Align Content
The align-content property aligns a wrapped flex container's lines along the cross axis — it only has an effect when the container has multiple lines (flex-wrap-wrap) and free cross-axis space.
Available values:
Examples
Align Content Start
Align Content End
Align Content Center
Align Content Between
Flex Shrink
The flex-shrink property controls whether an item may shrink below its basis when the container runs out of space. Use flex-shrink-0 to pin an item at its natural size (the other items absorb the squeeze).
Available values:
Examples
The middle item has flex-shrink-0, so it keeps its full width while its nowrap siblings shrink:
Flex Grow
The flex-grow property controls whether an item takes a share of the container's free space. flex-grow-1 on one item in a row makes it absorb whatever is left over — the usual way to pin a control to the end of a header row while the title takes the rest.
Available values:
Flex Basis
The flex-basis property sets an item's starting size before free space is distributed. It pairs with flex-grow: flex-grow-1 flex-basis-0 is the two-class form of the bare flex-grow helper, for when that helper's max-width: 100% is not wanted.
Available values:
Example
The middle item has flex-grow-1 flex-basis-0, so it absorbs the free space while its siblings keep their natural size:
Grid Columns
Bare CSS-grid tracks, without the cell padding and borders panel-grid carries. Use them on a display-grid container for an even 1–6 column layout. Anything needing an arbitrary track list belongs in component CSS rather than a utility.
gap-*, justify-* and align-* already apply to a grid container, so they are not repeated here.
Available values:
Example
One column on a narrow screen, three from md up:
Vertical Divider
.divider-vertical is a thin vertical rule for separating inline groups inside a flex row — for example clusters of summary stats in a header. It stretches to the height of the flex line (align-self: stretch), so no fixed height is needed.