# Problem with iframe background displaying white in IE

**URL:** https://forum.kirupa.com/t/problem-with-iframe-background-displaying-white-in-ie/326990
**Category:** web dev
**Created:** [January 29, 2012, 12:17pm UTC](https://forum.kirupa.com/t/problem-with-iframe-background-displaying-white-in-ie/326990 "2012-01-29T12:17:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Zenor](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zenor/32/3634_2.png) [@Zenor](https://forum.kirupa.com/u/Zenor)
#### Post date: [January 29, 2012, 12:17pm UTC](https://forum.kirupa.com/t/problem-with-iframe-background-displaying-white-in-ie/326990/1 "2012-01-29T12:17:28Z")

</div>

Hello,

I have an iframe in my project that has an image as a source. Then when a user click on a link from a list, it loads videos in html form.  
The videos are external so I can’t edit them.

Problem is that when the image is loaded, rest of the iframe background is white.  
I tried to make the image fit the iframe size, but there is white left, I suppose it’s the html margin of the external videos?

So to fix it I just created a css that hides the iframe if it’s internet explorer until a video link is clicked, but is there a better method(to maybe be able to display the image on the start)? :crazy:
