Languages
[Edit]
EN

CSS - disable scroll bar

4 points
Created by:
Paris-Bateman
504

In this short article, we would like to show how to disable a scrollbar using pure CSS.

Disabled scrollbar with pure CSS.
Disabled scrollbar with pure CSS.

Quick solution:

Note: go to this article to see the pure JavaScript version.

 

Practical example

Edit

This section shows how to disable both scrollbars using overflow: hidden;.

See also

Edit
  1. JavaScript - stop page scroll with e.preventDefault() 

Alternative titles

  1. CSS - remove scrollbar
  2. CSS - hide scrollbar
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join