W3C home > Mailing lists > Public > www-style@w3.org > August 2004

Hiding scrollbars in a <div> object

From: Rajib Momen <elrond@bostoncomputing.net>
Date: Mon, 30 Aug 2004 15:53:44 -0400
To: <www-style@w3.org>
Message-ID: <E1C1sE9-00028C-4I@frink.w3.org>
I've got something that's been working perfectly within some browsers, but
not most, and I'm wondering if someone could give me some help or tell me if
it's even possible. Within a particular page I have a <div> object where I
want to be able to scroll up and down, but not left and right. As such, I
don't want to even see the left-right scroll bar. What I've done works in
IE, but not in pretty much anything else. I use the following:


overflow: scroll;

            overflow-x: hidden;

            overflow-y: scroll;


When it doesn't work, the horizontal scroll bar just remains there greyed
out or something because there's nothing to scroll. I'd prefer it to just be
hidden. Anyone know of any workaround or whether or not overflox-x/y will
ever become a standard in CSS? Thanks in advance.


Best regards,
Rajib Momen

President, Director of I.T.
Boston Computing Network

Received on Monday, 30 August 2004 19:54:05 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:07 UTC