How to create a menu to navigate within the same page content?

Hello, I am trying to create a menu bar in a page container (left-hand side) to navigate in the content in a container (left-hand side) on the same page. It should be doable with some Javascript and CSS, but I don’t know how to do it. Would it be possible to have a template for doing that?

See below a mock-up of the desired result:

I have used this is a slightly different use case but you can follow this guide here -

Let me know if you’d like me to try and break this down further into a tutorial.

Thank you so much! It would be extremely helpful to see a tutorial with details on how to make the left menu bar “stick” to the top of the page while the user navigates the content of the page.

This may help