Technical Documentation Page.There are a couple of questions

Good afternoon, thanks for taking the time to help. The documentation page passes the test, but I have a few questions.

https://codepen.io/nebula/full/MxxxRZ

  1. 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).
  2. How to get rid of horizontal scrolling during the main content shift when opening a menu? (overflow does not help)
  3. 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)

1 Like

Hi @Nebula

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.

1 Like

I meant the appearance of a horizontal scroll when opening the menu

Consider using the overflow-x property

https://www.w3schools.com/cssref/css3_pr_overflow-x.asp

1 Like

Exactly, you are right, before that I wrote that the overflow property did not help, but I just applied it to the wrong element)