Guide: experiment with Flexbox visually
`display: flex` powers toolbars, cards, and centers, but `justify-content`, `align-items`, `flex-wrap`, and `gap` interact oddly — especially with child `min-width`.
Sliders tweak the sample container and items in-browser without repetitive manual CSS. Nothing is saved server-side — great for learning or prepping snippets before React/Vue components.
Use when mobile layouts break, teaching flex to juniors, or testing `order` and `flex-grow` before updating the design system.
Step by step
- Configure the flex container — Set `row`/`column` direction, wrap, and gap. Watch how the main axis shifts.
- Tune alignment — Play with `justify-content` and `align-items` — `space-between` vs `center` redistributes free space.
- Change child items — Adjust `flex-grow`, `flex-shrink`, and `basis` on one item to see neighbors move.
- Copy generated CSS — Move into your component and swap sample divs for real markup.