Reputation: 317
In a page I'm working on I have html container for a div height not more than 200px, however I need to fit in a text that requires 300px and I don't want to show the scroll-bar on the right side so I'm looking for some ways/plug-ins in order to scroll the text within the div. I'd like to be able to scroll down, to scroll up and to stop the scrolling.
Any suggestions about?
Upvotes: 0
Views: 1708
Reputation: 1089
I can highly recommend jQuery.ScrollTo. It will fit your needs perfectly.
Happy coding :)
Upvotes: 2
Reputation: 81
Set the style overflow:auto for the div. To control scrolling only in Y, set overflow-y:auto, overflow-x:hidden
Upvotes: 2