Zazz Design Framework
baseUtilities

Flexbox

Flexbox utilities for containers, direction, grow/shrink behaviors, and item alignment.

Flexbox utilities control container layout, item flex factors, and alignment across axes.

Container & direction

Loading components…
ClassDeclaration
flexdisplay: flex
inline-flexdisplay: inline-flex
flex-rowflex-direction: row
flex-row-reverseflex-direction: row-reverse
flex-colflex-direction: column
flex-col-reverseflex-direction: column-reverse

flex, inline-flex, flex-row, and flex-col support responsive prefixes (e.g. flex-col @md:flex-row).

Flex grow & shrink

Loading components…
ClassDeclarationDescription
flex-1flex: 1Grow and shrink, ignore initial size
flex-autoflex: autoGrow and shrink from content size
flex-initialflex: initialShrink but do not grow
flex-noneflex: nonePrevent growing or shrinking

Alignment and distribution

Loading components…
Cross axis (align-items)Main axis (justify-content)
items-startjustify-start
items-centerjustify-center
items-endjustify-end
items-stretchjustify-stretch
justify-between
justify-around

Item self-alignment

ClassDeclaration
self-autoalign-self: auto
self-startalign-self: start
self-centeralign-self: center
self-endalign-self: end
self-stretchalign-self: stretch

Grid item self-justification classes are also available: justify-self-auto, justify-self-start, justify-self-center, justify-self-end, and justify-self-stretch.

On this page