[thelist] horiz scrollbar only on overflow div
.jeff
jeff at members.evolt.org
Wed Jan 22 12:14:01 CST 2003
morgan,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Morgan Kelsey
>
> i have a div styled like this:
>
> .scrollBox {
> width : 600px;
> overflow : scroll;
> }
>
> this produces a div with both horizontal and vertical
> scrollbars. anyone know of a way to ditch the vertical
> one?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
sure, first is to just specify overflow on the y axix (vertical). second is
to set it to auto so that it only creates scrollbars if they're necessary.
a value of scroll will create them regardless.
overflow-y: auto;
enjoy,
.jeff
http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/
More information about the thelist
mailing list