Transparent iframes in internet explorer

DubberDan

Joined: 2005-04-12
Posts: 29
Posted: Mon, 2005-10-31 17:19

I've got iframes embedded into the front page of my gallery for the sub-albums and have set the background to be transparent so the background clour shows through. This works fine in Firefox but in IE they are showing with a white background.

I'm currently coding my standalone_style.css with:

Quote:
/*iframe config details*/
.iframe
{
padding:0px;
margin-top:0px;
background-color: transparent;
}

and the iframe is calle dup in albums.php with:

Quote:
<iframe src="albumtree.php?albumName=<?=$albumName?>" width="100%" height="100" frameborder="0"></iframe>

How do I get the transparancey working in IE?

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://technohippy.org.uk/gallery/albums.php
Gallery version: 1.4.4
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):
technohippy

 
DubberDan

Joined: 2005-04-12
Posts: 29
Posted: Thu, 2005-11-03 22:09

Any one?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2005-11-04 21:36

Why not edit the albumtree.php to have the background color you desire?
or the CSS to the color you want.

Dave
____________________________________________________
Gallery Frames / Mods || G1 Test Gallery

 
DubberDan

Joined: 2005-04-12
Posts: 29
Posted: Sat, 2005-11-05 23:18

Ah, well I would do that but the iframes are set within a page that has a graduated background, so if the background is set to a colour then it won't fit the rest of the page properly, hence wanting to make it transparent.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2005-11-06 03:52

does this work:
<IFRAME src="albumtree.php?albumName=<?=$albumName?>" width="100%" height="100" frameborder="0" ALLOWTRANSPARENCY="true">
</IFRAME>

____________________________________________________
Gallery Frames / Mods || G1 Test Gallery

 
DubberDan

Joined: 2005-04-12
Posts: 29
Posted: Mon, 2005-11-07 21:39

Nice one that did it. I'd tried just transparency="true" but not allowtransparency=

Thanks again

 
gnc

Joined: 2009-02-12
Posts: 1
Posted: Thu, 2009-02-12 07:44

<IFRAME src="albumtree.php?albumName=<?=$albumName?>" width="100%" height="100" frameborder="0" ALLOWTRANSPARENCY="true">
</IFRAME>

this does work but it does not pass the wc3 test.

 
AlexMatthews
AlexMatthews's picture

Joined: 2010-07-27
Posts: 1
Posted: Tue, 2010-07-27 09:26

I realise this is an old thread but what can I do if I want to achieve the same result as DubberDan whilst still have the code pass the W3C validation test?