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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...