ansarob
ansarob

Reputation: 825

jQuery Scroll Box Without Scrollbar

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

Answers (2)

Lukas Nagel
Lukas Nagel

Reputation: 139

Found a nice script: jQuery slimScroll, solving your problem while looking awesome. (not my script)

Upvotes: 0

EvilAmarant7x
EvilAmarant7x

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

Related Questions