cloudstryphe
06-18-2012, 05:50 PM
Hello all. After some search, I found the most adequate way to customize a scroll bar. I only want to have this custom scroll bar for 1 div I have and not the entire site. I've been trying to get that to work, but no matter what I do, the custom scroll bar always appears on both the div and the browser scroll on the right. Any ideas on how I could get this to work for the specific div class?
This is the webkit I'm using :
::-webkit-scrollbar-track-piece {
background-color:#fff;
-webkit-border-radius:0;
}
::-webkit-scrollbar {
width:8px;
height:8px;
}
::-webkit-scrollbar-thumb {
height:50px;
background-color:#f26522;
-webkit-border-radius:4px;
outline:2px solid #fff;
outline-offset:-2px;
border: 2px solid #fff;
}
::-webkit-scrollbar-thumb:hover {
height:50px;
background-color:#f26522;
-webkit-border-radius:4px;
}
This is the webkit I'm using :
::-webkit-scrollbar-track-piece {
background-color:#fff;
-webkit-border-radius:0;
}
::-webkit-scrollbar {
width:8px;
height:8px;
}
::-webkit-scrollbar-thumb {
height:50px;
background-color:#f26522;
-webkit-border-radius:4px;
outline:2px solid #fff;
outline-offset:-2px;
border: 2px solid #fff;
}
::-webkit-scrollbar-thumb:hover {
height:50px;
background-color:#f26522;
-webkit-border-radius:4px;
}