Jump to content
Sign in to follow this  
ben03

What control can you have over html scrollbars?

Recommended Posts

I was wondering whether it was possible to set a horizontal scrollbar to automatically scroll the furthest right upon opening, or whether this is something that has to be manipulated by jquery?

Share this post


Link to post
Share on other sites

It can't be done with CSS, but it can be done with Javascript by setting the element's scrollLeft property to scrollWidth - clientWidth. jQuery is not needed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×