Set flex properties visually and copy the CSS. Runs entirely in your browser — nothing is uploaded.
6 answers to what people ask most about the CSS Flexbox Generator.
Give the parent display: flex with justify-content: center and align-items: center. The Center preset sets this up.
justify-content places items along the main axis (the row, by default) and align-items places them across it. Switching to column swaps the two.
It is shorthand for flex-grow 1, flex-shrink 1 and flex-basis 0%, so items share the free space equally.
Only when items wrap onto more than one line. It spaces the lines themselves, which is why it appears here only when flex-wrap is on.
Give that item margin-left: auto. The Push last right preset shows it.
Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.
Something not working? Tell us and we'll fix it.
Report an issue