Navigation
Hi! When I open my navigation, I want the body to stop scrolling. I already give 'position:fixed' but it didn't work as expected.
7 Replies
Hello, do you have a codepen you could send to help us visualize the problem?
No, my project is on going and I haven't host it yet but I will try to write it in codepen to show you. Please wait.
Here is the codepen
The body doesn't seem to scroll in this version
different options, maybe the easiest one is to add a class to the body with overflow: hidden when nav is active
you can make it yourself a bit easier, to handle everything with only 1 class that toggles
I really appreciate your help. Thank you!