View Full Version : Scrolling div not scrolling

08-11-2009, 01:58 PM
I have created div tags to scroll text that does not fit within the height of the box. It worked for a while but now it has stopped working eventhough the scroll attribute is still applied.

The text content is now pushing all content beneath it downwards and destroying my layout.

Is there a fix for this?

08-11-2009, 03:47 PM
By scroll attribute, I assume you mean: overflow: scroll; in CSS.

If that's set, we'll need to be able to look at the page.

08-11-2009, 07:04 PM
Is there a fix for this? Yes, but we need to see the problem first ;)

08-12-2009, 12:29 PM
The problem:

By seeing the page do you mean the DW page or the html page?

08-12-2009, 12:45 PM
You need to add this property to the #scrolling text styles:

overflow: scroll;

Also, you can't use spaces in IDs or style names so you should change it scrollingText.

08-12-2009, 02:17 PM
It added the scroll bars to both the right and bottom.

Is there a way to have the scroll bar only on the right?

08-12-2009, 02:36 PM
Actually you need to add a height property to the style as well.

You can set overflow to auto and that will add the scroll bars only when they are needed but I believe it adds both scroll bars.