We help IT Professionals succeed at work.

iframe problem

PeterErhard
PeterErhard asked
on
235 Views
Last Modified: 2010-04-09
Is there someway with an iframe to stop an horizontal scroll bar from appearing?
Comment
Watch Question

Commented:
on your iframe. set scrolling to no,

<iframe name="" src="http://www.google.com" scrolling="no" width="100" height=""></iframe>


the other way is from your framed page, add this to the body

<body style="overflow-x:hidden">

Author

Commented:
Thanks for that, but its removed the vertical scroll-bar. How can I get that back?
Top Expert 2007

Commented:
'overflow: auto;' might do the trick.

Commented:
if you want the vertical scrollbar, ignore my first comment and remove the scrolling='no' attribute then change the body of your framed page to

<body style="overflow-x:hidden">

Author

Commented:
Nope, it doesn't work.

By including <body style="overflow-x:hidden">, it brings back the horizontal scrollbar.

Any ideas?
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks, I was adding it to main.html in your example.

Works fine :)
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.