Main Axis
The main axis is the primary axis along which flex items are laid out inside a flex container.
- Direction: It can be either horizontal (from left to right or right to left) or vertical (from top to bottom or bottom to top), depending on the
flex-direction
property. - Controlled by: The
justify-content
property controls the alignment of items along the main axis.