Hide Scrollbar With CSS

04.10.20

It is now possible to hide the scrollbar while retaining functionality using CSS without using JavaScript. 

.box{
   -ms-overflow-style: none;  /* IE and Edge */
   scrollbar-width: none;  /* Firefox */
}

.box::-webkit-scrollbar {
   display: none;
}
blog comments powered by Disqus