PDA

View Full Version : Vertical Scroll Bar... is it possible to do this?



jvanv8
11-10-2003, 03:56 PM
I have some text ona dynamic page that could be 1 sentance , 2 sentances, or a big glob of text with bullets and lists. The content is dynamic and I have no control over it.

What I would like is a vertical scrollbar if the content is exceeds a certain amount. I do not want horizontal scrollbars.

I tried CSS.
Overflow:"Scroll"
Gives me a horizontal scrollbar.

I tried TextArea
Gives me a horizontal scrollbar.

I tried CSS and trimming the bottom of the layer off with margins... WORKS - No Horizonal Scroll BUT the horizonal scroll is visible in Netscape and on Macs.

I tried
<textarea name="textarea" rows="15" cols="50" wrap="virtual" readonly class="noborder" >
but HTML can not be rendered inside and the area does not stretch with the browser window.

I thought about a Javascript solution but most are a bit amature looking and you are not able to "drag" a "slider bar"

Whats the deal... shouldn't this be easy. 1 measly vertical scrollbar, nothing more, nothing less...

Thanks for any help
- John

ranjan
11-10-2003, 04:00 PM
Overflow:"Scroll"

Instead Try

overflow: auto;

jvanv8
11-10-2003, 04:04 PM
Ok, tried the overflow "auto" but it displays a horizontal scrollbar that has very little movement and no effect on the layer.

jvanv8
11-10-2003, 04:08 PM
oh wait, it does work!!
(Stupid Dreamweaver... with MX CSS files were updated automatically. Now with MX2004 you have to always hit "Save All" in order for the css change to appear on a locally running site. Trips me up sometimes - like now).


Thanks again ranjan!

carbonize
11-11-2003, 09:21 AM
Just remember that overflow is a level 2 CSS property so may not be that widely supported.