Add to Google

Disabling Horizontal Scroller In Iframe? - How can I do that?

Pages: 1, 2
free web hosting

Read Latest Entries..: (Post #14) by iGuest on Oct 15 2008, 10:30 PM. (Line Breaks Removed)
GENIUS!!! Disabling Horizontal Scroller In Iframe? Replying to iGuest I searched and searched for a solution to this D@mn scrollbar problem, tried numerous 'solutions', YOURS actually worked. Thank you, thank you, thank you!!-reply by Sedge11
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

Disabling Horizontal Scroller In Iframe? - How can I do that?

Amezis
Is there a way to disable the horizontal scroller in iframes? If yes, how can I do it?

Comment/Reply (w/o sign-up)

ashiezai
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

Comment/Reply (w/o sign-up)

choetry
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

Comment/Reply (w/o sign-up)

Argoth
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.

Comment/Reply (w/o sign-up)

xlipglossaffectx
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 huh.gif

Comment/Reply (w/o sign-up)

Amezis
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...

Comment/Reply (w/o sign-up)

alexia
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


Comment/Reply (w/o sign-up)

Amezis
Yes, but I only want to disable the horizontal scrollbar, not the vertical too! tongue.gif

Comment/Reply (w/o sign-up)

nipun
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.

Comment/Reply (w/o sign-up)

dodgerblue
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:

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. smile.gif

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 smile.gif If you still have problems, you are welcome to PM me or IM me or bug other more knowledgeable people on the forums heheh tongue.gif (but I can't guarantee that they'll welcome it wink.gif)

 

 

 


Comment/Reply (w/o sign-up)

Latest Entries

iGuest
GENIUS!!!
Disabling Horizontal Scroller In Iframe?

Replying to iGuest I searched and searched for a solution to this D@mn scrollbar problem, tried numerous 'solutions', YOURS actually worked. Thank you, thank you, thank you!!

-reply by Sedge11

Comment/Reply (w/o sign-up)

iGuest
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

Comment/Reply (w/o sign-up)

iGuest
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..


Comment/Reply (w/o sign-up)

iGuest
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

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Pages: 1, 2
Recent Queries:-
  1. disabling scroll bars on a webpage - 0.69 hr back. (1)
  2. hide horizontal scroll bar of iframe - 5.77 hr back. (1)
  3. disable horizontal scrollbar in iframe - 11.16 hr back. (1)
  4. iframe no horizontal scrolling - 12.92 hr back. (1)
  5. iframe width hide horizontal scrollbar - 13.14 hr back. (1)
  6. iframe horizontal scrollbar disable - 13.70 hr back. (1)
  7. hide horizontal scrollbar in iframes - 13.93 hr back. (1)
  8. hide horizontal scrollbar iframe - 15.18 hr back. (1)
  9. not vertical scrollbar on iframe - 16.39 hr back. (2)
  10. iframe horizontal scrollbar - 16.51 hr back. (1)
  11. iframe disable vertical scrollbar - 16.52 hr back. (1)
  12. remove iframe horizontal scrollbar - 18.59 hr back. (1)
  13. iframe no horizontal scroll - 19.95 hr back. (1)
  14. iframe horizontal - 20.44 hr back. (1)
Similar Topics

Keywords : disabling, horizontal, scroller, iframe

  1. An Iframe Discrepancy
    (7)
  2. Iframe Src = A Local File In My Computer
    (6)
    Is it possible to call a file, i.e. 1.htm, from my web browser using such tag HTML iframe src
    =" file:///C:/1.htm "> /iframe > file:///C:/1.htm is the correct path since when I enter it
    to my web browser's address box it shows up properly. But when I use the same call function in
    my PHP it does not. My situation is that I'm running Apache with PHP, therefore I am running my
    own mimi-webserver on my computer. There's no risk of someone else accessing my file because
    it's for my testing purpose. I thought it had to do with some Apache settin....
  3. Iframe Menu Question
    (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
    embedded that page in all the main "content" pages using an iframe. The problem is that whenever I
    click the links in the menu they open INSIDE of the iframe instead of switching the whole browser to
    the page the link is directed to. I hope I'm not TOO hard to understand. /wink.gif"
    style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> Oh, and on this page it has
    the perfect example of what I want. http://www.w3schools.com/tags/tag_iframe.asp See ....
  4. Help With Css/html Layout
    Horizontal List Problems (5)
    I can't figure out why this horizontal list isnt working. Underneath my banner is supposed to
    be a green gradient bar with a list of links in the center of the page. The links are all the way
    to the left and are really small. The banner is also overlapping the list for some reason. This is
    my current layout(don't worry, I'm not trying to advertise).
    http://www.stormgaming.net/stormcreations/ This is my CSS file
    http://www.stormgaming.net/stormcreations/storm.css Thanks in advance for any help.....
  5. Change Scroller Icon (like Favicon)
    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
    in the Sitepoint website. As I was reading it, I clicked the middle mouse button (scroller) and
    instead of the ugly circle with two arrows and a dot in the middle a personalized Icon (of
    sitepoints logo) appeared. Its kind of like the favicon thing, but with the scroller instead. Anyone
    here knows how to do this? Or what its called? (scrollicon?, lol, dont know).....
  6. Website Security
    encryption/html function disabling etc. (2)
    Hey Guys, Searched for posts re: webpage security (keeping slimeB*lls from "borrowing" your content)
    on the forums & came up blank. So thought I'd start a string here. OK, so does anyone have any
    info to contribute? Has anyone used html encryption programs? Does this create problems with
    browsers "reading" the page content or other functionality problems? What about webpage/html
    modifications/"updates" after the page has been encrypted? How good is the encryption OR how easy is
    it to hack/crack etc. ??? Anybody? Cheers! PS-Any strings/links in the forums I've mis....

    1. Looking for disabling, horizontal, scroller, iframe

Searching Video's for disabling, horizontal, scroller, iframe




advertisement



Disabling Horizontal Scroller In Iframe? - How can I do that?