How to disable scrolling on body?
by Kiet Huynh · December 1, 2018
Sell Online With Shopify
Trusted by millions of businesses worldwide
For a limited time, sign up for a free trial and enjoy 3 months of Shopify for $1/month on select plans — offer ends Aug 25.
What’s the best way to prevent the body tag scrolling. The easiest way is a simple CSS snippet:
| .disable-scrolling{ overflow-y:hidden; overflow-x:hidden; } |
And you must add this class (disable-scrolling) into body tag.
Demo
Related
Related Posts via Categories
Tags: CSSdisable scrolling
You may also like...