| | Is there a way to disable the horizontal scroller in iframes? If yes, how can I do it? |
|
|
|
if u set the width no larger that the view screen, then it would be no scrollbar i think.
Im not very sure about this. I've use the width attribute to do this before. Sure there are some other ways
why would you want to do that? if the visitor's browser is not at full size, your frame will be very compressed without the horizontal scroll bar
if you set scrolling to no the iframe will have no scrollbars but I don't know how to disable just the horizontal scrollbar.
It would be like the frames trap17 uses.
The option in Microsoft FrontPage edits both scrollbars not one individually. Even if you try write the HTML through a programe like WordPad i don't think you can set only one scrollbar to change. I don't see why you would want to though
Well, it's because I have a shoutbox, and sometimes a horizontal scrollbar appears, well it's not that annoying, but it could be better without. It's a bug that only happen sometimes...
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
I don't html have any specific command for that.
but still u can try verticalborder=no horizontalborder=0 if this work it is ur good luck. 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: CODE #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: CODE <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. CODE <iframe src="shoutbox.html" style="overflow-x: hidden;"> </iframe> Hope that was helpful
Latest Entries
Hide Horizontal scroll bar of IFRAME.
Disabling Horizontal Scroller In Iframe? How to hide horizontal scroll bar using IFRAME control. I want only vertical scroll bar. If description width is long then appear horizontal scroll bar but I not want horizotal scroll bar any way. Help me. -reply by piyush
Replying to Trap FeedBacker
You can use horizontalscrolling="no/yes" and verticalscrolling="no/yes" An example of this will be on lornamacdonald.Co.Uk shortly, as an image preview scrollbar. Here is the entire thread of code I have used: <iframe width="600px" height="100" id="iframe_id" name="iframe_name" src="commercial.Htm" horizontalscrolling="yes" verticalscrolling="no" marginwidth="0" marginheight="0" frameborder="0" ALLOWTRANSPARENCY="true" onload=resize_iframe();></iframe> If you are using iframes, search for iframe resize on google for a nifty little javascript code that I use at the end..
about the removal of the horizontal scrolling-bar in iFrames
Disabling Horizontal Scroller In Iframe? I've also had the same pb with the horizontal scrolling-bar ... I've tried resizing the framed page with <b>{width:95%}</b>, tried with <b>overflow-x:hidden</b>, tried deleting the DTD lines at the top of the page ... None of them worked ! Here's the answer [I found it somewhere on the net, looking stupid, but it works] ... For scrolling in the iFrame I've set value "yes" (<b>scrolling="yes"</b>), so I got rid of the horizonal bar. Then I checked the site in Mozilla and it appeared here (previously it was allright in Mozilla), so I've added <b>style="overflow-x:hidden;"</b> ... So it worked with Mozilla also. Here's the complete lines: <IFRAME name=stbbox src="serv_frame.Html" width="365" height="300" scrolling="yes" style="overflow-x:hidden;" frameborder="0" marginheight="0" marginwidth="0" vspace="0" hspace="0"> <p>Your browser doesn't support frames. Click <a href="serv_frame.Html" target="_blank">here</a> to view the page.</p> </IFRAME> Hope you enjoy it as I do !! -reply by Calin
Recent Queries:-
Keywords : disabling, horizontal, scroller, iframe
(1) I am trying to make a menu for my site. I made an HTML page with the text/links of the menu, then I Horizontal List Problems (5) I can't figure out why this horizontal list isnt working. Underneath my banner is supposed to How do I change the scroller? (3) I was reading about browser specific hacks, to hide something from IE, and I found this nice article encryption/html function disabling etc. (2) Hey Guys, Searched for posts re: webpage security (keeping slimeB*lls from "borrowing" your content) Looking for disabling, horizontal, scroller, iframe
|
|
![]() Disabling Horizontal Scroller In Iframe? - How can I do that? |
| ADD REPLY / Got an Opinion! | Remove these ADs! | RAPID SEARCH! | Free Web Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute more info. to help others. Ask your Doubts & Queries to get answers, So that "Together We can help others!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|