Edupala

Comprehensive Full Stack Development Tutorial: Learn Ionic, Angular, React, React Native, and Node.js with JavaScript

CSS scrollbar color

We can add scrollbar color with help of CSS.

body::-webkit-scrollbar {
  width: 1em;
}

body::-webkit-scrollbar-track {
   -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

body::-webkit-scrollbar-thumb {
   background-color: darkgrey;
   outline: 1px solid slategrey;
}
CSS scrollbar color

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top