View Full Version : a question aboout scrollbar of frame
yao_jw
11-17-2003, 09:39 AM
in a frame, I can hide scrollbar by
frame.scrolling=no,
but if I want to hide only the horizonal or
vertical scrollbar instead of both, what should I do? anybody knows some way to realize that?
use CSS style attribute overflow-x, for the horizontal scrollbar, and overflow-y for the vertical scrollbar atributes:
For instance, to hide the horizontal scrollbar, use this:
<style type="text/css">
<!--
body {
overflow-x: hidden;
}
-->
</style>
yao_jw
11-18-2003, 01:13 AM
KOR,
thank you! I looked up the directionary and found the attribute
overflow seems to take no effect on FRAME element. Maybe I should try to put my table in a container such as DIV in which the attribute overflow can be used. thanks for your help!
adios
11-18-2003, 04:02 AM
<style type="text/css">
html, body {
overflow-x: hidden;
}
</style>
You'll need to put this rule in the documents you're loading in your frames - not the frameset HTML. The HTML scrolling attribute will affect both scrollbars.
I have shown you only the CSS attribute you may use. If you want to set him in the frame's body, or if you want to use it as a style-on-fly, called from parent... well, this is up to you...
And, yes, I forgot to tell you to remove the HTML attribute of scrolling if you are using the CSS style instead, adios is right...
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.