tags:

views:

87

answers:

1

I have a div container and in it is an iframe. The iframe's height is dynamic meaning it changes with the content. The problem is that the div container's height doesn't dynamically change with the iframe's height. How do I make the div container's height change dynamically?

Thanks

A: 

If javascript is an option, you can try this.

o.k.w
I have disabled scrolling already with scrolling="no". So I have to find out the height of iframe instead of 'scrollHeight'. How would I do that? What should be the right term in place of 'scrollHeight'?
`f.style.height = f.contentWindow.document.body.scrollHeight + “px”;` is to set the height of the iFrame to it's content scrollHeight.
o.k.w