Iframe and scrolling

SpaceshipSpaceship
SpaceshipSpaceship
NamecheapNamecheap
Watch

Brusca

Established Member
Impact
0
Hi Guys,
I have an iframe which displays another page. Its all set up to automatically scroll. But when the page does require to scroll I get a vertical scroll as well as a horizontal scroll. Now the content of the page displayed does not extend itself past the width of the iframe and no matter what I do (reduce the width of the target page) it still comes back with a horizontal scroll bar. Its very annoying.

Any help cheers

Bruce
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Hey Brusca, give this a shot:
Code:
<body style="overflow-x:hidden;overflow-y:scroll">
I hope that does the job.
 
0
Close
Thanks. Gave it a try. Put that body tag in both the page with the iframe and the iframe page as well but no luck.
 
0
Close
Odd, it should have worked if you replaced the current body tag with that. Would you happen to have an uploaded copy of the webpage that we can take a look at?
 
0
Close
The website is here.

www.brusca.id.au

click on "winter 2002" on the left and you will see what i mean.
 
0
Close
The code above (if placed correctly in the target document) should have done the job, but if that's not doing it, browse through this article and see if it helps.
 
0
Close
I have placed this code in the body tag of the target and also the div tag surrounding the table and even adjusted some of the formatting and it still does not work.

Its likely the right way to go about it but I just can't get it working.

Thanks Mr Websites. That article did the trick.

Cheers Bruce
 
Last edited:
0
Close
Glad it all worked out.
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back