DIV Scrollbar Style

CSS3 – Webkit – Vertical Scrollbars.

Create fancy vertical scrollbar of DIV with style. used only CSS for DIV scrollbar

Way back in the day, you could customize scrollbars in IE (5.5) with non-standard CSS properties like scrollbar-base-color which you would use on the element that scrolls (like the <body>) and do totally rad things. IE dropped that.

These days, customizing scrollbars is back, but it’s WebKit this time. It’s a bit better now, because the properties are vendor-prefixed (e.g. ::-webkit-scrollbar) and use the “Shadow DOM”.

Source: http://cssdeck.com/labs/css3-webkit-vertical-scrollbars/

 

CSS:

 

 

HTML:

 

Leave a Reply

Your email address will not be published. Required fields are marked *