tags:

views:

41

answers:

2

I have a iframe on my page. I have inserted a background image on it. but its not showing the Image. Here is my code.

 <iframe scrolling="auto" allowtransparency="true" name="main" style="width:100%;height:90%" style="background-image:url(img/bg2.jpg)"> </iframe>
+1  A: 

Try this:

<iframe scrolling="auto" allowtransparency="true" name="main" style="width:100%;height:90%;background-image:url(img/bg2.jpg)"> </iframe>

if it doesn't work move the background images to the container of the iframe.

jerjer
Thanks Its work fine but still not working on IE only working on firefox.
Talha Bin Shakir
A: 

Try this .. it should work(tested in IE/Firefox/Google Crome)

<div><img src="a.JPG"></div>

<div>
<iframe style="display:none" width="325" height="276" frameborder="0" scrolling="auto"></iframe>
</div>
priyanka.sarkar