Click to See Complete Forum and Search --> : Scrollable Area


misteralexander
03-06-2005, 01:28 AM
Click Here to visit the page in question

If you go to my site (listed above) you'll see that I have a small working area. You'll see a title on the top and some flash buttons on the side. I'm wanting to create an area right in the middle there that I can have scrollable HTML. I don't like frames and so don't want to do anything with them, but I'm hoping to have lots and lots of content in my little space; to do this I need to have the middle area of my page be scrollable & still allow me to post HTML. I'm still a beginner & I'm using Dreamweaver MX 2004.

Any help is still help.

-Alex.

the tree
03-06-2005, 02:32 AM
<div style="overflow: auto;">Lots and lots of content</div>

misteralexander
03-06-2005, 03:09 PM
<div style="overflow: auto;">Lots and lots of content</div>

That didn't work. Thanks for the idea. I actually tinkered and was able to do exactly what I wanted. All I had to do was set the attributes of my DIV LAYER to 'OVERFLOW=SCROLL' and it works exactly how I wanted. Follow the link below to see it in action. Also, The website will be up April 1, 2005 . . . tell your friends!!!

http://www.wickedsmaat.com/testing/scrolllayer.htm

Thanks for the help!

-Alex.

MstrBob
03-06-2005, 03:35 PM
Overflow:auto; won't cause a visual browser to use a scrolling mechanism unless the content exceeds the dimensions of the element. The example didn't include specific dimensions, therefor the content didn't exceed the dimensions. Put simply, overflow:auto; won't cause scrolling unless you give the elment a height and width, and the content is larger then that height/width.