How to disable scrolling on body?
What’s the best way to prevent the body tag scrolling. The easiest way is a simple CSS snippet:
1 2 3 4 | .disable-scrolling{ overflow-y:hidden; overflow-x:hidden; } |
And you must add this class (disable-scrolling) into body tag.