Interactive online courses HTML Academy
2026-03-09 14:05 Diff

And now let’s create another “flexible” menu that is similar to the one we made in the assignment from the last chapter.

Remember that in the previous version the items were evenly distributed inside the menu container using justify-content: space-around.

The new menu option will be more adaptive: the menu items will be transferred to the next line if there is not enough space. And in order to achieve beautiful symmetry, the items will be spread out to occupy the entire menu container. And, again, flex-grow will help us to achieve this.

Create a basic layout and configure the lines to overflow.