How to Create Custom Scrollbar in CSS | Customize Scrollbar for column code example

Example 1: custom scrollbar

body::-webkit-scrollbar {
  width: 12px;               /* width of the entire scrollbar */
}
body::-webkit-scrollbar-track {
  background: orange;        /* color of the tracking area */
}
body::-webkit-scrollbar-thumb {
  background-color: blue;    /* color of the scroll thumb */
  border-radius: 20px;       /* roundness of the scroll thumb */
  border: 3px solid orange;  /* creates padding around scroll thumb */
}

Example 2: scrollbar css

.any-class::-webkit-scrollbar {
	width: 8px;
}
.any-class::-webkit-scrollbar-track {
	background: #c1c0c0;
}
.any-class::-webkit-scrollbar-thumb {
	background: #828282;
}
.any-class::-webkit-scrollbar-thumb:hover {
	background: #555;
}