CSS Flexbox Generator
Configure every Flexbox property through a visual UI and see the result live. Set flex-direction, flex-wrap, justify-content, align-items, align-content, gap, and per-item flex-grow/shrink/basis/align-self. Add or remove flex items and copy the generated CSS for the container and each item.
Runs in your browser
Nothing uploaded
Free, no signup
Ctrl + Enter to run · Recent brings back your last inputs · Everything stays in this browser
CSS Flexbox Generator: questions
What is the difference between justify-content and align-items?
justify-content aligns items along the main axis (horizontal by default); align-items aligns them along the cross axis (vertical by default).
flex-grow vs flex-basis?
flex-basis sets the initial size of an item before space is distributed. flex-grow determines how much of the remaining space the item takes. flex-shrink controls how it shrinks when there is not enough space.
When should I use Flexbox vs Grid?
Flexbox is best for one-dimensional layouts — rows OR columns. CSS Grid is better for two-dimensional layouts with both rows and columns defined.
Related tools
All 112 free toolsMade something with AI? Share it as a private link.
Drop in the HTML from Claude, ChatGPT or any editor and get a link your client can open anywhere — with a password, view tracking, comments and approval.