Flexbox Playground

flex-direction
justify-content
align-items
flex-wrap
gap
Items (1โ€“8)
4 items
1
2
3
4
.container { display: flex; flex-direction: row; justify-content: flex-start; align-items: stretch; flex-wrap: nowrap; gap: 0; }

Flex Item Properties

PropertyValuesDescription
flex-grow0, 1, 2โ€ฆHow much the item grows relative to others
flex-shrink0, 1, 2โ€ฆHow much it shrinks when space is tight
flex-basisauto, 0, 200pxโ€ฆInitial size before growing/shrinking
flex1 = 1 1 0%Shorthand for grow, shrink, basis
align-selfauto, flex-startโ€ฆOverride align-items for this item
order0, 1, -1โ€ฆVisual order (default 0)