Good afternoon, thanks for taking the time to help. The documentation page passes the test, but I have a few questions.
- Is it possible to make it so that after clicking on the anchor link in the menu, the menu is closed back using only CSS, without JS (in the mobile version).
- How to get rid of horizontal scrolling during the main content shift when opening a menu? (overflow does not help)
- What are your comments, suggestions. If you like something, feel free to say, I am motivated by any of your answers.
p.s. Translation will finish soon)
Thanks for attention)
Nice page, looks good.
One thing I’d suggest is that on smaller screens rather than collapsing the navbar and leaving it on the left, collapse and move it to the top. Then you wouldn’t use as much real estate when you open it. You can use flexbox to accomplish this.
For your first question I don’t know the answer for sure but I think you need JS to do what you want. Hope someone that knows better will chime in.
For your second question, I don’t understand what you mean.
I meant the appearance of a horizontal scroll when opening the menu
Consider using the overflow-x property
Exactly, you are right, before that I wrote that the overflow property did not help, but I just applied it to the wrong element)