Skip to content

CSS: Styling Scroll Bar

let say you want to styling overflow div bar, here example css

.yourdiv::-webkit-scrollbar {
    background:red;
    width:5px;
}
.yourdiv::-webkit-scrollbar-track {
    background-color: #eaeaea;
    border-left: 1px solid #ccc;
}

.yourdiv::-webkit-scrollbar-thumb {
    background-color: #ccc;
}
.yourdiv::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

 

Comments are closed.