main axis

The direction flex items are laid out in, horizontal for flex-direction: row and vertical for column.

In more detail

It follows flex-direction and the writing direction of the page. justify-content distributes space along the main axis, and flex-grow and flex-shrink resize items along it.

Related terms

Taught in

References