Title: prevent overflow scrolling?
Last modified: December 12, 2022

---

# prevent overflow scrolling?

 *  Resolved [martin177](https://wordpress.org/support/users/martin177/)
 * (@martin177)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/prevent-overflow-scrolling/)
 * Hi!
 * Is there a way to prevent overflow scrolling on this particular page only and
   in desktop mode only?
 * Thank you very much in advance!!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fprevent-overflow-scrolling%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Shahin](https://wordpress.org/support/users/skalanter/)
 * (@skalanter)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/prevent-overflow-scrolling/#post-16281666)
 * Hello [@martin177](https://wordpress.org/support/users/martin177/),
 * There are two ways. The first one will lock the scrolling – freezing the page,
   and this CSS is not our advice, also it just works on your device height:
 *     ```
       body.page-id-1285 {
           height: 100vh;
           overflow: hidden;
       }
       ```
   
 * The second one will hide the scrollbar only on this page:
 *     ```
       body.page-id-1285::-webkit-scrollbar {
           width: 0 !important;
       }
       ```
   
 * Best Regards
 *  Thread Starter [martin177](https://wordpress.org/support/users/martin177/)
 * (@martin177)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/prevent-overflow-scrolling/#post-16281902)
 * Thank you so much again! Option 2 works like a charm.
 * Have a wonderful day!
    Martin
 *  [Shahin](https://wordpress.org/support/users/skalanter/)
 * (@skalanter)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/prevent-overflow-scrolling/#post-16284031)
 * You’re most welcome, I’m glad we could help.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘prevent overflow scrolling?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/oceanwp/4.1.5/screenshot.png)
 * OceanWP
 * [Support Threads](https://wordpress.org/support/theme/oceanwp/)
 * [Active Topics](https://wordpress.org/support/theme/oceanwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/oceanwp/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/oceanwp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Shahin](https://wordpress.org/support/users/skalanter/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/prevent-overflow-scrolling/#post-16284031)
 * Status: resolved