PDA

View Full Version : iframes scrolling



ckenneh
12-06-2006, 05:29 PM
ok i know you can disable scroll bars in you iframes but what if you only want to disable the horizontal one?

i have tried using <body style="overflow-x: hidden"> in the page it is linking to but with no luck - any ideas?

p.s. im pretty useless at css and javascript so dont tell me lots of jargon lol

please tell me if it can be done - ckenneh

Flauvo
12-06-2006, 07:17 PM
<iframe scrolling="yes"

Recursion
13-06-2006, 06:41 AM
he only wants one of them

Tomm
13-06-2006, 06:42 AM
Don't think you can disable just one.

ckenneh
13-06-2006, 02:07 PM
yep only the horizontal one (bottom)

Flauvo
13-06-2006, 05:20 PM
wouldnt ity be

width="100%"

Then it wouldnt scroll....

Halting
13-06-2006, 05:33 PM
If you put width="100%" the iFrame would be the size of the page your putting the iFrame on OR the size of the table you putting the iFrame in. It will fill its complete width. The contents inside would cause the horizantal scroll bars the appear if its contents are to large.

To my knowledge, it isn't possible. Some internet language nerds might know.

Flauvo
13-06-2006, 05:36 PM
width="100%"

means that the width will only be 100% of the table you've put the iframe in, not creating horizontal scrollbars

Halting
13-06-2006, 05:40 PM
you don't know what your on about. if you put the term 'width="100%"' inside an iframe it will make the width of the iFrame as big as it can possibly be. It would cover your entire page's width and its size would change when you resize your browsers window. If its in a table then it will reach the tables size. aka <table size="500"...<tr><td... then inside <iframe width="100%" it will make the iFrame 500 pixels in width, covering all of what it can be in size.

Flauvo
13-06-2006, 05:42 PM
<iframe name="main" width="100%" height="100%" frameborder="0" allowtransparency="true" src="home.php"></iframe>

That's mine, mine doesnt have a horizontal scrollbar

Halting
13-06-2006, 05:44 PM
as i explained earlier, it depends on the contents of your iframe. if you have a picture inside covering a width of 3050062340640pixels it certainly will have a horizontal scrollbar.

Flauvo
13-06-2006, 05:45 PM
That is differant, if the iframe only contains text then the fact is it will not expand horizontally, pictures have to expand to their original size and the iframe will also expand and produce a horizontal scrollbar. i dont think there is a way to stop this happening

ckenneh
13-06-2006, 06:19 PM
well the page i want to link to is www.ckenny.u55.biz/wc.htm (http://www.ckenny.u55.biz/wc.htm) and it shows the horizontal scroll bar in the 822pixels iframe even though it don't need it (www.ckenny.u55.biz (http://www.ckenny.u55.biz) is main link):eusa_wall

Flauvo
14-06-2006, 04:24 PM
Yes, you've defined a height for it,

put 100% instead off 822

Halting
14-06-2006, 06:55 PM
It has nothing tog do with the iFrame. The page has no reason to extend further than the iFrame. I'm not sure what the defualt div size is, it might be 100%. Try erasing the div tags and replacing them with <center></center>'s

Want to hide these adverts? Register an account for free!