PDA

View Full Version : Scrolling div not scrolling


bandolin
08-11-2009, 02: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?

DWcourse
08-11-2009, 04: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.

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

bandolin
08-12-2009, 01:29 PM
The problem:
http://www.bandolin.net/CitedesJeunes/

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

DWcourse
08-12-2009, 01: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.

bandolin
08-12-2009, 03: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?

DWcourse
08-12-2009, 03: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.