Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Disabling Horizontal Scroller In Iframe?


19 replies to this topic

#1 Amezis

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 535 posts
  • Location:Oslo, Norway

Posted 06 April 2005 - 02:47 PM

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

#2 ashiezai

    King of My WOrld

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 482 posts

Posted 06 April 2005 - 02:55 PM

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

#3 choetry

    Premium Member

  • Kontributors
  • PipPipPipPipPipPipPipPip
  • 150 posts
  • Location:Somewhere in the webspace, with a huge spider beside me.

Posted 06 April 2005 - 02:57 PM

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

#4 Argoth

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 29 posts

Posted 06 April 2005 - 04:19 PM

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.

#5 xlipglossaffectx

    Newbie

  • Kontributors
  • Pip
  • 6 posts
  • Location:Newcastle.. :D

Posted 06 April 2005 - 08:07 PM

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

#6 Amezis

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 535 posts
  • Location:Oslo, Norway

Posted 10 April 2005 - 06:12 PM

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

#7 alexia

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 310 posts
  • Location:Italian
  • Interests:None

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

#8 Amezis

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 535 posts
  • Location:Oslo, Norway

Posted 05 May 2005 - 07:23 AM

Yes, but I only want to disable the horizontal scrollbar, not the vertical too! :(

#9 nipun

    Newbie [Level 2]

  • Kontributors
  • PipPip
  • 29 posts

Posted 05 May 2005 - 08:22 AM

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.

#10 dodgerblue

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 270 posts
  • Location:10 inches from the computer screen
  • Interests:draughts. i open all the doors and windows in my house.

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:

#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. :D

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 :( 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 :()




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users