Reputation: 825
I have a box that is 250px x 250px. I want to make it scrollable, but I don't want to have the scrollbars appear because of how much space they take up. I assume this is possible with jQuery, but not finding anything. Anyone know?
Upvotes: 1
Views: 11398
Reputation: 139
Found a nice script: jQuery slimScroll, solving your problem while looking awesome. (not my script)
Upvotes: 0
Reputation: 2069
You can put what you want to scroll inside a another div, whose size is set. And make the css of this container to overflow: hidden;
so there are no scroll bars. Then you can create some triggers (click on up/down arrows, etc.) that trigger a scrollTo on the container div.
Here's an example: http://jsfiddle.net/UwEe2/
Upvotes: 5