PDA

View Full Version : no horizontal scroll bar



dmelo
11 Feb 2007, 05:14 PM
hi, i have a big image for the background so that if they have a big monitor, they would be able to see all of it. but if they have a small monitor the horizontal scroll bar comes up and if i put overflow hidden then i cant scroll vertically. Can any one help me out?

Wickham
12 Feb 2007, 01:31 AM
You can use overflow-x: hidden; overflow-y: scroll (or auto instead of scroll).

x is the horizontal scrollbar, y is the vertical.

Play with these options until you get what you want.

You say if they have a small monitor the horizontal scroll bar comes up but if your image is a background image it should not create a scrollbar on its own; there must be something wide inside a div or table cell to cause a horizontal scrollbar.