puffnstuff
04-20-2008, 09:09 PM
I have a box that has a defined width and height.
I have placed text and pictures within the box, and with the use of margins, borders, etc. everything fits very well from left to right, and it's all perfectly centered within the box.
I want to limit the box height to 460px, and have a scroll bar when the content goes beyond that height. But when I use the overflow:auto feature, the scrollbar actually covers up the right side of the box, and some of the characters of text cannot be seen. It also puts a horizontal scroll bar across the bottom so I can scroll to the right to see the far right side of the box. I don't want the horizontal scroll bar, but if I only ask for the vertical scroll (overflow-y:auto), then I can't access the right side of the screen at all. Very frustrating.
How do I make this work? Do I have to change the original width of the box? If I make the box narrower, it doesn't work within the design of the page, and the same thing happens when I make the box wider. I don't want to have a whole pile of white space on the right side if the content is less than 460px in height.
Does anybody know how to easily add overflow to a box or div, without having to re-configure the entire page layout?
I have placed text and pictures within the box, and with the use of margins, borders, etc. everything fits very well from left to right, and it's all perfectly centered within the box.
I want to limit the box height to 460px, and have a scroll bar when the content goes beyond that height. But when I use the overflow:auto feature, the scrollbar actually covers up the right side of the box, and some of the characters of text cannot be seen. It also puts a horizontal scroll bar across the bottom so I can scroll to the right to see the far right side of the box. I don't want the horizontal scroll bar, but if I only ask for the vertical scroll (overflow-y:auto), then I can't access the right side of the screen at all. Very frustrating.
How do I make this work? Do I have to change the original width of the box? If I make the box narrower, it doesn't work within the design of the page, and the same thing happens when I make the box wider. I don't want to have a whole pile of white space on the right side if the content is less than 460px in height.
Does anybody know how to easily add overflow to a box or div, without having to re-configure the entire page layout?