Click to See Complete Forum and Search --> : IFRAMES Transparency


seanb
12-18-2002, 12:10 PM
Hi all - I am using IFRAMES and loading content into them. However, I need the background to be transparent so the main image on the page is underneath the text in the HTML documents within the IFRAME. I have tried background-color="transparent" and it doesn't work. Anyone else come across this yet?:cool:

Stefan
12-18-2002, 12:38 PM
Have you tried making both <html> and <body> transparent?

If not try it

<style type="text/css">
html, body {background:transparent;}
</style>

If it doesn't work in browsers you are probably SOL.

<object type="text/html"...> would be another option that is more likely to pick up the background, but browsersupport for including images like this is really bad.

This page also shows a method that should theoretically be possible for you to apply (uning the same images as background) however IE is quite broken in it's CSS support of background images :(
http://www.meyerweb.com/eric/css/edge/complexspiral/demo.html

gil davis
12-18-2002, 03:32 PM
has an attribute called "allowTransparency". See

http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/allowtransparency.asp

for more information.

It is a Microsoft proprietary attribute.

BTW, I don't think you want quotes around transparent. I believe it is a constant, not a string. In IE, the background-color of an object by default is transparent.