View Full Version : scroll bars in frames
pthompson2002
10-07-2002, 04:39 PM
Is it possible to turn horizontal scroll bars off yet still have vertical ones within a frame?
thanks
Pete
adios
10-07-2002, 04:59 PM
Try this (in any frame document):
<style type="text/css">
body {
overflow-x: hidden;
overflow-y: scroll;
}
</style>
piniyini
10-07-2002, 05:01 PM
This should work, I havnt tried it out.
<style type="text/css"><!--
#FrameName{overflow-x:hidden;}
/--></style>
And then have a id tag in the frames body named "FrameName".
As follows:
<body id="FrameName">
Ta Da.
piniyini
10-07-2002, 05:02 PM
Damn 2 minutes.
Bosko
10-07-2002, 06:29 PM
Put this in the BODY of your frame:
<script>
document.body.style.overflow="hidden";
document.body.style.overflow="moz-scrollbars-vertical";
</script>
pthompson2002
10-08-2002, 09:31 AM
is there a solution that is cross browser compatible? I can olny seem to get them to work in IE. Bosko, I can't seem to get your solution to work at all.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.