[thelist] scrollbars in a div?

Jackson Yee jyee at vt.edu
Fri Jul 26 14:34:05 CDT 2002


----- Original Message -----
From: "Mark Howells" <mark at mountain.ch>
To: <thelist at lists.evolt.org>
Sent: Friday, July 26, 2002 04:36
Subject: Re: [thelist] scrollbars in a div?


> > hi, is there any way to get scrollbars in a DIV tag? so that i can pu
> > tsome text in it and make it scroll automatically instead of the whole
> > page?
>
> #myDiv {width:500px; height:200px; overflow:scroll}
>
> Make sure you test this across your target browser audience, as it doesn't
> work as intended in some browsers.

(I'm quite amused by the fact that I was just discussing the overflow style
with a friend last night, and now I find that there's a discussion going on
over here as well.)

There's a very good test list of browsers at

http://www.xs4all.nl/~ppk/css2tests/overflow.html

As usual, Netscape 4.x bombs out completely, but Opera and IE on Mac also have
some issues as well.  Be wary of the audience that you're affecting by making
this design decision versus the traditional method of scrolling the whole
page.

Regards,
Jackson Yee
jyee at vt.edu
http://www.jacksonyee.com/




More information about the thelist mailing list