DEV Community

Mehul Lakhanpal
Mehul Lakhanpal

Posted on • Originally published at codedrops.tech

CSS: Hide scrollbar

Hide the scrollbar using <element-selector>::-webkit-scrollbar

<style>
  .content {
    height: 300px;
    width: 300px;
    overflow: auto;
  }
  .content::-webkit-scrollbar {
    display: none;
  }
</style>

<div className="content">
  content...
</div>
Enter fullscreen mode Exit fullscreen mode

Alt Text

Top comments (0)