PDA

View Full Version : Left/Right Scroll



NeoDreamer
January 9th, 2007, 12:47 PM
I have some intricate tiling background. It would push the main content too far to the right, so I need a way to do the following:

1) How do you disable left/right scroll on a webpage by completely removing the L/R scroll bar?
2) How do you auto center Left/right-wise the page?

Shard
January 11th, 2007, 05:23 PM
The standards compliant CSS way is to place everything inside a div and set that divs overflow to none. There are IE specific (and NS specific) tags that affect only the x (left/right) values of overflow but they should be avoided since some browsers ignore them. Unfortunately that means you also lose the y overflow :-)
see www.kiwipoker.com for an example of a huge image (width wise) that scrolls without any horizontal bars showing up.