Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • this solution is from w3schools.com/howto/howto_css_hide_scrollbars.asp Commented Nov 16, 2020 at 21:03
  • 11
    According to archive.org, this answer pre-dates that page. And when that page was launched, it didn't have this solution. So I think W3 Schools's solution is from Stack Overflow ;) Commented Nov 17, 2020 at 22:23
  • I wish there was a way to allow this for vertical scrolling and not horizontal (or vice versa). Commented Jul 20, 2021 at 11:29
  • @lharby There is, just use overflow-x and/or overflow-y. Commented Jul 23, 2021 at 20:35
  • @DJFriar that is a different property. One would need html::-webkit-scrollbar-x html::-webkit-scrollbar-y etc. but I presume no such thing exists. overflow is a css property, scrollbars are implemented by the browser. Commented Jul 24, 2021 at 9:10