Interactive online courses HTML Academy
2026-03-09 10:55 Diff

To place flex items at the start of the main axis, you need to assign the flex-start value to the justify-content property. It is also the default value.

And the flex-end value will position items at the end of the main axis.

Please note that justify-content: flex-end does not change the order of items like what happens when we change the direction of flow of the flex-direction: row-reverse axis. The items are simply pressed to the end of the main axis.

Let’s test these values of justify-content and place the rugs at the start and end of the container room.