View Full Version : Why doesn't "overflow-x: hidden" not seem to work in NS6/7?
Maximus - DFX
08-17-2002, 10:46 PM
Simple question. I even looked through all the props on the document.body.style object and overflowX isn't there only overflow is and overflow doesn't seem to do jack. Anyone got an idea y?
Very easy in fact - there is no such CSS1, CSS2, or CSS3 property. It is just something IE threw in on its own.
Fortunately, it seems you are in luck - see the overflow: property on this page:
http://www.xulplanet.com/tutorials/xultu/elemref/ref_StyleProperties.html
And it says Mozilla supports a proprietary "-moz-scrollbars-vertical" value for overflow is you just want vertical scrollbars to appear.
zoobie
08-17-2002, 11:05 PM
Omggg....Netscrap released 7? LMAO! NS6 was @ 1%, what is NS7? .01%?
Anyway, try
<body style="overflow:hidden">
<body style="overflow-x: hidden;">
<body style="overflow-y: hidden;">
or maybe you already have...heh heh :D
Maximus - DFX
08-17-2002, 11:48 PM
Ad much as I appreciate the link to the props page I can't seem to understnad it or get it to wokr in NS6/7. Maybe you can give me the line of code I can use to remove the scrollbar using JS?
Bosko
08-18-2002, 02:42 PM
You should use overflow:-moz-scrollbars-vertical; to show the vertical scrollbar
Maximus - DFX
08-18-2002, 06:32 PM
I get the feeling there is no way to hide scrollbars in NS6/7? the overflow:-moz-scrollbars-vertical actually adds a scrollbar to the body of the document but doesn't remove the scrollbar from the window. Any more ideas ?
Bosko
08-18-2002, 06:51 PM
If what you want to do is hide the horizontal scrollbar and only show the vertical scrollbar,then you can use this simple script:
<script>
document.body.style.overflow="hidden";
document.body.style.overflow="moz-scrollbars-vertical";
</script>
jsthinks
10-28-2011, 07:14 PM
You should use overflow:-moz-scrollbars-vertical; to show the vertical scrollbar
you helped me...thank u
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.