2Set justify-content and align-items to align children
3Adjust gap and item count to see the layout
4Copy the generated CSS code
Frequently Asked Questions
Flexbox is a CSS layout model that lets you arrange items in a container along a main axis. It makes alignment, spacing, and ordering easy without floats or positioning hacks.
justify-content controls alignment along the main axis (horizontal for row, vertical for column), while align-items controls alignment along the cross axis.