Is there a way to disable the horizontal scroller in iframes? If yes, how can I do it?
| |
|
Welcome to KnowledgeSutra - Dear Guest | |
Disabling Horizontal Scroller In Iframe?
Started by Amezis, Apr 06 2005 02:47 PM
19 replies to this topic
#7
Posted 02 May 2005 - 09:28 PM
Use This Code for That ::
<iframe id="datamain" src="Html address " width="Size" height="Size" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=1 scrolling=no></iframe>
if marginwidth and marginheight and frameborder = 0 iframe load with out any bordar and any 3d style
if scrolling = no dont show scroll and if = yes it show scrolls
in front page u can first put your iframe and then in html code find iframe tag and edit scrolling to no
<iframe id="datamain" src="Html address " width="Size" height="Size" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=1 scrolling=no></iframe>
if marginwidth and marginheight and frameborder = 0 iframe load with out any bordar and any 3d style
if scrolling = no dont show scroll and if = yes it show scrolls
in front page u can first put your iframe and then in html code find iframe tag and edit scrolling to no
#10
Posted 05 May 2005 - 08:26 AM
Hello, to answer your question:
I'll attempt to explain this by using an example. Let's say your iframe source is called shoutbox.html and your division ID for the style of the shoutbox is under #div.
This is what you put in your style tags:
Of course you have other things in between, I'm sure there are colour and width and height and other specifications. But to hide the horizontal scrollbar that is what you do.
Then how to call it up would be to insert the id into the iframe tag.
Like so:
Alternate method (easier method):
If you are not sure about using CSS, then directly edit the HTML by inserting this into the divison tag.
Hope that was helpful
If you still have problems, you are welcome to PM me or IM me or bug other more knowledgeable people on the forums heheh
(but I can't guarantee that they'll welcome it
)
I'll attempt to explain this by using an example. Let's say your iframe source is called shoutbox.html and your division ID for the style of the shoutbox is under #div.
This is what you put in your style tags:
#div {
overflow-x: hidden;
}
Of course you have other things in between, I'm sure there are colour and width and height and other specifications. But to hide the horizontal scrollbar that is what you do.
Then how to call it up would be to insert the id into the iframe tag.
Like so:
<iframe src="shoutbox.html" id="div"> </iframe>
Alternate method (easier method):
If you are not sure about using CSS, then directly edit the HTML by inserting this into the divison tag.
<iframe src="shoutbox.html" style="overflow-x: hidden;"> </iframe>
Hope that was helpful
Reply to this topic

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users














