Search Engine Optimization > Web Design > iframe in div
iframe in div
Posted by Anita Meyer on November 18th, 2004

Hello,

I want to use an iframe in a div-Box. Thus I have created a CSS:

div.box {
font-weight: bold;
text-align:left;
position: absolute;
top: 10px; left: 10px;
width: 182px;
right: auto;
border: solid 1px green;
padding:0px;
margin:0px;
}
iframe.test {
margin:0px;
padding:0px;
border:solid 0px blue;
width:100%;
height:65px;
}



the html-code:

<div class="box">
<h1>test</h1>
<iframe src="if.html" scrolling="no" name="if" frameborder="0"></iframe>
</div>


The iframe should be displayed at the bottom of the div-box. But the
Internet Explorer always adds a small white padding between the bottom of
the iframe and the border of the div-box.

Every other brower can display it.

What can I do to tell the ie not to add a white space between the
bottom-border of the iframe and the border of the div?

Greetings
--
Anita Meyer
anita.meyer@aon.at

Funbolt.com - Entertainment portal, wallpapers, sexy celebs