Hello, I was wondering if disabling scroll on a page is possible. What I am trying to do is the following:
I would like to disable the scroll on one page, and have custom “back” and “next” buttons guide the user to a new section when clicked. I am creating a custom forum, and want the users to answer a question in a “section”, click “next” when complete, and have them automatically directed to the next section on the page.
I have another question you can possibly help me with. When I click on the button that takes me to the next section, it only scrolls to about 75% of the section. Since I can not scroll, I can no longer view or click the next and back button. Is there a way to show the next section and show 100% of the section instead of 75%?
OK, that’s strange. I’ve given it a little google and apparently Safari has a nasty habit of ignoring ‘overflow:hidden’ when set to the body or html.
Try wrapping everything in a div and setting that div to ‘overflow:hidden’ and let me know if that fixes the problem.
As for the scrolling problem - Funnily enough you need to do the same thing!
The scroll is stopping short because it is expecting your nav bar to be at the top of the window, as opposed to yours which you’ve fixed at the bottom.
If you wrap your navigation in a div, it will fully scroll to the section.
My lesson learned for the day - “If it’s not working… wrap it in a div”