Skip to content Skip to sidebar Skip to footer

Div Horizontal Scroll, How To Onload To Id

Have a site with MANY horizontally scrolling DIV containers. On one of the containers we want it to scroll to a certain position onLoad. Recommendations to what the best solution i

Solution 1:

You can use the scrollLeft property for this.

http://jsfiddle.net/v6EwS/

document.getElementById('foo').scrollLeft = 500;​

Post a Comment for "Div Horizontal Scroll, How To Onload To Id"