View Full Version : Make scroll bar start from center
08-29-2010, 11:54 PM
I have a div tag with very wide content(an image) that I want to start from the center and then be able to scroll left and right from there.
By default the scroll bar starts on the left.
Using overflow-x: scroll to get the limited width in the div that contains the image
08-31-2010, 07:12 AM
Bump as no answers.
Maybe I am not being clear.
the div containing the wide img that I would like to show the center of has
but by default the scroll bar starts by showing the left side of the image. (The img is aligned to the left)
Tx to anyone who has some clues for me.
11-09-2010, 04:10 AM
I was wondering the same thing.
I have a timeline that represents time on the X axis past to present left to right. i would like the present to be displayed with the overflow hidden under scroll to the left.
my other option is to completely reverse the whole thing.
11-09-2010, 05:23 AM
A better idea might be to not use scroll bars at all, but just the cursor hand to move the image, like Google Maps and .pdfs use.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.