...

View Full Version : Make scroll bar start from center



mapleleaf
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
Any ideas?

mapleleaf
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
{overflow-x: scroll}
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.

sathirtythree
11-09-2010, 04:10 AM
Bump.

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.

DrDOS
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum