See flexbox behave
Flexbox is the workhorse of one-dimensional layout, but its properties are easy to mix up — especially which axis justify-content and align-items act on. This playground lets you change each property and watch a live row of items react, which is the fastest way to build the right mental model.
Copy the container rule
The output is the CSS for the flex container: display, direction, justify-content, align-items, wrap and gap. Paste it onto a wrapper and its children arrange themselves accordingly. Everything runs on your device with nothing uploaded.