Learn flexbox visually, free. Tweak direction, alignment, wrapping and gaps on a live demo, then copy the generated CSS for your project.
Change any container property: direction, main-axis alignment (justify-content), cross-axis alignment (align-items), wrapping and gap, plus the number of demo items. The preview updates instantly so you can see exactly what each value does, and the CSS panel shows the matching stylesheet block ready to copy into your project.
Flexbox lays items along a main axis (controlled by flex-direction and justify-content) and a cross axis (align-items). Start with direction row and justify-content center: the most common centering recipe on the modern web. Toggle wrap on when items should flow onto new lines instead of shrinking.