[thelist] scrolling part of a page
Scott Wehrenberg
swehren at gmail.com
Wed Mar 2 11:20:56 CST 2005
On Wed, 2 Mar 2005 11:23:55 -0500, Dave Merrill <dmerrill at usa.net> wrote:
> Is there any cross-browser way, other than frames or iframes, to make part
> of the page scroll vertically only, with no horizontal scrollbar?
If you set overflow: auto for an element it will only scroll in the
direction which it overflows. So unless you put an element inside the
scrolling parent which has a width wider than the parent it won't
scroll horizontally. It also won't scroll vertically until there's
more vertical content than it can contain.
More information about the thelist
mailing list