• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 531
  • Last Modified:

Auto Resize iframe Based on Content of iframe

Dear all,

A much asked question, but we have the below iframe embedded in a WordPress page, and we need the iframe to auto-resize each time the content of the iframe changes (i.e. when users click on a link in the iframe to go from one page to another each being longer or shorter than the other)... Width will always remain static.

<iframe src="http://ourwebsiteforums" frameborder="0" align="left" width="1075" height="100%"></iframe>

Please provide working code, and also note that we DO NOT want scrollbars to appear.

Thank you.
0
loyaliser
Asked:
loyaliser
1 Solution
 
hankknightCommented:
This does exactly what you are looking for:
http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now