I’m working at the same objective here. I have two iframes, side by side, inside a div. The div has a border of 1px. When I use {float: left;} on the left iframe, it covers the div’s left border. But when I use {float: right;} on the right iframe, it does NOT cover the div’s right border.
To get the page to appear how I want, I only use the {float: right;}, but from what I know and have experiences with iframes and html, this shouldn’t work this way. Can someone explain this to me?
And the reason I’m using the div tag is that I want my content centered on the page, and while “body {text-align: center;}” makes things look fine in IE, it does not in Firefox 4. If there are any ideas why this is so, please add to reply.
Thanks
[CODE]
div.main {
width: 1006px;
align: center;
border: 1px #656565 solid;
margin: 0 auto;
}
<div class=”main”>
<iframe class=”header” src=”header.html” width=”100%” height=”58px” frameborder=”0″></iframe>
<iframe class=”leftpanel” src=”leftpanel.html” width=”216″ height=”500px” frameborder=”0″></iframe>
<iframe style=”float: right;” src=”rightpanel.html” width=”789″ height=”300px” frameborder=”0″></iframe>
</div>
And yes, I know, the align tag in the div css is deprecated, but I find nothing on correct css for center alignment.