Forum Moderators: open

Message Too Old, No Replies

div scrolling

stop horizontal scrolling but keep vertical scrolling?

         

dragonangel

1:28 pm on Jul 7, 2003 (gmt 0)

10+ Year Member



Hi everyone

Is there a way to stop the horizontal scrolling in a div but keep the vertical scrolling? I've made a little div and put some images there. I resized the width of the div so you can see all of one image and i've put more images below it (inside the div). There's a vertical scrolbar but there's also a horizontal scrollbar. I resized the width of the div to be double of the width of the image but its still got the horizontal scrollbar.

If anyone can help, it'd be really appreciated!
Thanks!

tedster

5:31 am on Jul 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, Dragonangel.

Try <div style="scrolling:auto;"> or add scrolling:auto; to your external CSS. Works on my machine.

dragonangel

6:00 am on Jul 8, 2003 (gmt 0)

10+ Year Member



yay - it worked. Thanks so much!

tedster

6:43 am on Jul 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Glad it worked, but...I mis-typed and I should have said overflow:auto; instead of scrolling:auto;

dragonangel

12:04 pm on Jul 9, 2003 (gmt 0)

10+ Year Member



lol. i'd already added it. later on it didn't work and then i figured i'd put 'align=justify' in the div tag and somehow that stuffed it up.