Click to See Complete Forum and Search --> : Overflow:auto not working...


kedaniels
04-28-2009, 09:03 PM
Ok, help me out here. I've never used the overflow:auto property and I'm trying to get it working for a menu on this website.

Here's the page:

http://www.amesburyalehouse.com/scripts/lunchmenu.asp

and you can see for yourself that it's not working. I'm sure that I'm missing something simple but I just can't figure it out.

Thanks....

Eye for Video
04-28-2009, 11:35 PM
Well you need to set a height and then set the overflow (content which extends past the set height) as auto, or "stick in a scroll bar here to see the rest of the content".
Your class
.hiddenDiv
doesn't have it.
Try something like this (ok, for a div)
#news {
width: 620px;
height: 440px;
margin-left:350px;
padding: 6px;
text-align:left;
overflow:auto;
border-style: double;
border-color:#dea011;
}
If content is more than 440px, a scroll bar will appear.
Good luck,
EfV

kedaniels
04-29-2009, 08:21 AM
Thanks! I did have the overflow code lower in the source; turns out I didn't specify PX (just had 631 and not 631px ) and that threw it off.