Loading…
A short voice session: one question, one follow-up, then instant feedback — up to 5 minutes.
justify-content aligns or distributes items along the main axis; align-items aligns them on the cross axis. flex-direction determines those axes.
In a typical horizontal writing mode with flex-direction: row, the main axis is horizontal and the cross axis vertical. With column, the main axis is vertical and the cross axis horizontal. display: flex; justify-content: center; align-items: center can center an item within available container space. A visible vertical effect requires available height; the properties do not create extra space themselves.