- Feb 14, 2004
- 51,757
- 7,308
- 136
I'm using an iFrame in the site I'm working on to display content. I have a Flash header with buttons above the iFrame which I use for navigation of the iFrame. It works great. However, I want to have the iFrame dynamically resize to fit the height of whatever the content page is. Right now, when you click on a link in the Flash header, it will open the appropriate iFrame content page, but then the iFrame will get a scrollbar. I don't want the scrollbar in the iFrame; I want the scrollbar on the main page. So, when you click a link on a Flash navigation button, I want it to open the content in the iFrame and then have the iFrame automatically resize to fit the content.
I've been doing a lot of googling and testing out various code chunks to make this work. I'm using HTML/XHTML, JavaScript, and CSS. This thread has had the best results so far, which means it works for one click in Firefox and not at all in Internet Explorer. Is there a reliable way to have iFrames dynamically resize themselves to fit their content?
Cliff's:
1. I use an iFrame on my site
2. I want the iFrame to automatically resize to fit the content
3. How do I do this?
I've been doing a lot of googling and testing out various code chunks to make this work. I'm using HTML/XHTML, JavaScript, and CSS. This thread has had the best results so far, which means it works for one click in Firefox and not at all in Internet Explorer. Is there a reliable way to have iFrames dynamically resize themselves to fit their content?
Cliff's:
1. I use an iFrame on my site
2. I want the iFrame to automatically resize to fit the content
3. How do I do this?
