M
M
Michael2019-09-22 19:55:25
css
Michael, 2019-09-22 19:55:25

How to lay out a menu on flexbox?

Hello!
I'm laying out the menu in the header, and the top line consists of two columns.
In the left column is the main menu, in the right column is the authorization menu.
If I set the left menu to flex-wrap: wrap, then when the screen narrows, the menu items start wrapping.
If I give the left menu flex-wrap: nowrap then the left menu starts pushing the right menu out of the body.
And I want to make the right menu seem to be in place all the time, so that it doesn’t get pushed out, fix it, and at the same time, so that the items on the left menu are not transferred, but that they begin to hide if they do not fit in the container.
I don't know how to do it. Tell me, please ..
here is an example:
https://codepen.io/mk3mk/pen/NWKeMpJ?editors=1100

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question