Forum Moderators: open
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?
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.
<div id="store">
<iframe name="content_frame" width="100%" height="500" frameborder=0 src="someURL"></iframe>
</div>
#store {
position: absolute;
top: 165px; left: 0;
padding: 0 65px 0 65px;
width:100%;
} [edited by: katana_one at 12:51 pm (utc) on May 4, 2005]
I can live with it for now.