What is the Flexbox Generator?
Flexbox is the easiest way to line up items in a row or column, space them out and centre them. Change the container settings (direction, wrap, justify-content, align-items, gap) and the number of items, and watch the boxes move. Copy the CSS when it looks right – a great way to learn Flexbox too.
How to use the Flexbox Generator
- Set flex-direction, wrap, justify and align.
- Change item count and gap.
- Copy the container CSS.
Most useful combo
display:flex; justify-content:center; align-items:center; – perfectly centres anything.
This Flexbox Generator is 100% free, needs no signup and runs privately in your browser – on phone, tablet or computer.
Last updated: · By NodifyTech