IFrame background transparent in IE
56,776
Add allowTransparency="true" to your iframe
<IFRAME ID="Frame1" SRC="whatever.htm" allowTransparency="true">
For whatever.htm add background:transparent
to its body
tag.
<body style="background:transparent">
Related videos on Youtube
Comments
-
Thew almost 4 years
So i have this iFrame with the class .transparentbg:
.transparantbg{ background-color: transparent; }
This works fine in Chrome, but not in IE...
Help please?
Greetings
-
Pekka about 13 yearspossible duplicate of iframe background image showing fine in Firefox but not in IE
-
-
pranky64 about 12 yearsgreat! this works perfectly for IE8 but i'm still having problems with IE7 its still showing a white background in place of transparent any ideas.??...
-
Han Dijk almost 12 yearsYes, live with the fact that a very small percentage of your users will see a white background instead of a transparent one.
-
Wasim A. over 11 yearsah, after two days, i found this solution. many many many thanks to both you guys
-
cage rattler about 10 yearsIf anyone is seeing further issues, I'm finding that in IE8, when an existing iframe changes it's source, the html tag within it must be styled as well.
-
bbodenmiller almost 10 yearsappears IE9 doesn't require the
allowTransparency="true"
part.