tag section to fully disable scrolling across all devices.
To disable vertical scrolling on both desktop and mobile in Webflow, you need to hide the overflow of the page’s main wrappers. Here's how to do that:
overflow: hidden
on the body
and html
Elementshtml
and body
, you'll need to use custom code (see next step).Go to Page Settings or Project Settings > Custom Code.
In the Before tag section, paste the following inline style:
``
This ensures vertical scrolling is completely prevented across all devices, even if elements exist outside the viewport.
To disable vertical scrolling in Webflow, set overflow: hidden on the Body element using the Style panel, then reinforce it by targeting both html and body with a custom CSS rule in the Before tag section. This prevents scrolling on desktop and mobile browsers.