PDA

View Full Version : I Made a Fluid IFrame!


X96 Web Design
06-27-2009, 02:51 AM
I don't know if someone's already figured this out, but from what I've read, nothing seemed to work.

I just figured out how to make an Iframe have a fluid width and height!

Here's how: add !important to the height and width CSS on it:

<iframe src="page.html" style="display:block; width:100%!important; height:100%!important;" />


It works in Firefox 3 (What I'm using). If anyone could post the results in other browsers/versions, it would be great!

Cheers,
X96

C55inator
06-29-2009, 06:11 PM
Works fine on Webkit Based browsers.

C55inator
06-29-2009, 06:12 PM
Cool trick!