...

View Full Version : scroll bars in frames



pthompson2002
10-07-2002, 05: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, 05:59 PM
Try this (in any frame document):

<style type="text/css">

body {
overflow-x: hidden;
overflow-y: scroll;
}

</style>

piniyini
10-07-2002, 06: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, 06:02 PM
Damn 2 minutes.

Bosko
10-07-2002, 07: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, 10: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum