A beginner tutorial on how the flexbox main and cross axes work and how flex-direction changes the behaviour of justify-content and align-items. It is aimed at people who find flexbox axes confusing.
What you’ll learn
✓Explain how flex-direction changes the main and cross axes
✓Predict how justify-content and align-items behave in a row or column
✓Align flex items along the axis that matches the layout direction