views:

29

answers:

1

hello

I am designing a web page with HTML IFrames is there a possible way to make the Iframe width and height autoresize and is that compatable with at least (IE,firefox,safari,chrom) ??

please help !

A: 

No.

You can manage the width pretty easily, but web pages are flow documents and do not "understand" the concept of height (not easily, at least).

In order to do something like this, you'll have to use javascript. To make your javascript cross-browser compatible as easily as possible, you should use a framework such as jQuery.

There are several questions here about resizing content to height using jQuery like this one.

Will