add padding when scrollbar show css code example
Example: add padding to scrollbar
::-webkit-scrollbar {
width: 18px;
}
::-webkit-scrollbar-thumb {
background: red;
border-right: 13px white solid;
background-clip: padding-box;
}