Get flexbox CSS, and see which axis each property is talking about.
row, flex-start
Nearly all flexbox confusion comes down to one thing: justify-content works along the main axis and align-items works across it, and setting flex-direction to column swaps which is which. With row, the main axis runs left to right, cross axis runs top to bottom. Two other habits save time later. Items shrink by default, so text can squash below its natural width until you set flex-shrink to 0 or a min-width. And align-content only does anything once flex-wrap is on, because with a single line there is nothing to distribute.
.flex {
display: flex;
gap: 16px;
}What this cannot tell you
Take this with you
Flexbox Playground on RunTheTests — free browser-based frontend tools, no sign-up.