Forum Moderators: open

Message Too Old, No Replies

Is scrollbars=auto a myth?

It's a pretty common misconception if so

         

GuanoLad

2:41 am on Oct 23, 2003 (gmt 0)

10+ Year Member



I tried to make a popup window that was sized to exactly the same as the image within. That was fine, except when the image is larger than screensize, making it pretty impossible to see the rest of the pic. So I scrapped that idea.

So now I size the smaller dimension exactly, and the larger one should get scrollbars automatically, right?

Except no, scrollbars-auto doesn't work. Despite the fact that I have seen sites use it, recommend it, and apparently succesfully (?) utilise it.

Now I have to resize the windows to a size that includes a vertical scrollbar, which is ugly.

So is it true, that scrollbars=auto doesn't work? Or maybe it's an IE only thing. Or maybe it's that I was implementing incorrectly.

Any thoughts?

Pricey

9:20 am on Oct 23, 2003 (gmt 0)

10+ Year Member



I don't think auto is a vaild value for "scrollbars"

try scroll=auto or scrollbars=1

you can also try overflow=auto (in CSS)

bruhaha

2:30 pm on Oct 23, 2003 (gmt 0)

10+ Year Member



maybe it's an IE only thing

Sort of. There is no "auto" option for scrollbars on a popup (unlike the "scrolling" attribute for frames which allows yesŠnoŠauto). But if you use "scrollbars=yes" Netscape won't show a scrollbar unless it is needed. IE, unfortunately, will give you a grayed out scrollbar in that situation, which is far less elegant.

Solution: I have not been able to get Pricey's CSS suggestion to work, but 'scroll="auto"' should do the trick --if you place it in the BODY tag of the popup.