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)