Karthik
Karthik

Reputation: 317

scrolling text within a div

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

Answers (3)

EmKay
EmKay

Reputation: 1089

I can highly recommend jQuery.ScrollTo. It will fit your needs perfectly.

Documentation is found here

Some demos are found here

And most importantly, here is the project page at plugins.jquery.com where the latest download is located

Happy coding :)

Upvotes: 2

brettkelly
brettkelly

Reputation: 28205

Try jScrollPane - I've used it and it works quite well.

Upvotes: 1

Oskar Akerlund
Oskar Akerlund

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

Related Questions