View Full Version : Change scrollbar color in div

05-28-2012, 07:19 PM
Hello dear friends,
I am using the code:

<div style="width: 190px;height: 250px;overflow:-moz-scrollbars-vertical;overflow-y:auto;">
Some text

At the website: http://lithosluxury.com/lithos-property/villas?view=property&id=34:very-impressive-villa-at-limassol-limassol-cyprus

How can I change the color of the scrollbar?

Thanks a lot


05-28-2012, 07:26 PM
The scrollbar look is a component of the operating system and is very different on different OS’s (take Apple’s Aqua look, for example), and therefore cannot normally be changed with CSS. There are JavaScript solutions, though. You just have to use the search functionality of this forum or on the internet generally, it’s not hard.

Major Payne
05-29-2012, 07:47 AM
Take a look at Flexcroll: FleXcroll, Flexible and Accessible Custom Scroll Bars (http://www.hesido.com/web.php?page=customscrollbar)