๐จ CSS Flexbox Playground
Visual flexbox builder. Tweak controls โ see live preview โ copy CSS / Tailwind.
๐๏ธ Live Preview
1
2
3
4
5
flex-direction
flex-wrap
justify-content (main axis)
align-items (cross axis)
gap: 8px
Number of items: 5
CSS
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: stretch;
flex-wrap: nowrap;
gap: 8px;Tailwind
flex flex-row justify-start items-stretch flex-nowrap gap-2๐ Flexbox Quick Tips
- ๐ฏ justify-content: aligns items along main axis (flex-direction)
- ๐ฏ align-items: aligns items along cross axis (perpendicular)
- ๐ row: main axis is horizontal | column: main axis is vertical
- ๐ flex-wrap: allows items to wrap to new line
- ๐ gap: modern way to space items (replaces margin hacks)