...

View Full Version : Transparent iframe problem



howard-moore
01-05-2012, 01:28 PM
Hi All,

I am having a difficult problem with iframe transparency / inherit. The iframe sits on a HTML page within a DIV with a grey background. In Chrome, IE9 and FF the iframe (which is a separate HTML page) BODY inherits the grey background background of the first DIV. However, in IE8 it doesn't, and simply has a white background.

Can anyone suggest what I should be using to try and force this through? I have tried the following for the iframe stylesheet:

body {
background-color: inherit;
}

body {
background-color: transparent;
}

body {
background: inherit;
}

body {
background: transparent;
}

However, they all seem to have the same results.

Help appreciated!

Thanks,
Neil

Amphiluke
01-05-2012, 01:37 PM
Have you tried to use the allowTransparency attribute?

<iframe src="banner.html" width="468" height="60" allowTransparency></iframe>

howard-moore
01-05-2012, 02:02 PM
Have you tried to use the allowTransparency attribute?

<iframe src="banner.html" width="468" height="60" allowTransparency></iframe>

Works great - thanks!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum