DEV Community


CSS: Hide scrollbar

Mehul Lakhanpal
Full stack Developer | Micro-blogging on Web Development at | Creator of File Ops, Note Box, GitHub Marker
Originally published at ・1 min read

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

  .content {
    height: 300px;
    width: 300px;
    overflow: auto;
  .content::-webkit-scrollbar {
    display: none;

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

Alt Text

Discussion (0)