w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to use height: auto property in css with JQuery custom content scroller when calling mCustomScrollbar() manually

You can try jQuery Scrollbar. I've updated your jsFiddle example - look here. Just included styles and scrollbar from github.io and apply it to your container when document is ready.

Do not forget to add class for scrollbar - scrollbar is fully customizable through CSS classes. List of ready-to-use classes available on basic demo page. In your example I've used class scrollbar-light with background-color modification:

.scrollbar-light > .scroll-element {
    background-color: yellow;
}




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.