Skip to content Skip to sidebar Skip to footer

Using Image For Webkit Scrollbar - Minimum Height For -webkit-scrollbar-track-piece?

Using a background image for -webkit-scrollbar-thumb:vertical. Here's a jsFiddle: http://jsfiddle.net/6ESpj/2/ To simulate problem, increase the height in div.inner from 1500px to

Solution 1:

::-webkit-scrollbar-thumb:vertical
{
    background:black url('http://i.minus.com/jbcOb9d7Bb1p6Y.png') no-repeat;
    background-size:26px 63px;  
    background-position:;
    display: block;
    width: 30px;
    height: 100px;
}

Try this, change height of this to whatever you want, if you wish you can with JS compute proper height, something like: height_of_::-webkit-scrollbar-thumb:vertical = height_of_div / SOME_CONSTANT... but I think that isn't necessary.


Post a Comment for "Using Image For Webkit Scrollbar - Minimum Height For -webkit-scrollbar-track-piece?"