Page is a not externally linkable
- Browsers
-- Firefox Browser Usage and Support
---- Fluid width iframes in Firefox and IE


stlwebs - 1:19 am on May 4, 2005 (gmt 0)


It seems I am having trouble with an iframe's width displaying differently in IE and Firefox.
Currently, it is set to width="100%" which works fine in IE, which most of our visitors use. But Firefox does not seem to like the 100% value, and only renders an iframe about 200-300 px wide instead of using the container DIV's width.

If I change the iframe width to "auto" then it displays correctly in Firefox, and in IE it fails to use the parent DIV's width.

How do I get it to display at 100% of the parent DIV's width in both browsers?

First of all, when I build anything for the web I always preview it in Firefox because if it dispays right there, you pretty much assume it will be good everywhere else.

For your iframe problem, since you are placing iframes within tables and layers/div's, I would check your code for the div or table that you are specifying the iframe to take up 100% of the width.


Thread source:: http://www.webmasterworld.com/firefox_browser/192.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com