View Full Version : Difference between ie and firefox - iframes


Sappervet
02-05-2005, 03:34 PM
In regards to iframes...

I would like to know why ie and firefox display the transparency command differently. Here is a sample of the coding so you see what I mean.

Take note that the iframe is contained in a table column.

<table width="50%" height="100%" border="2" align="center" bordercolor="#FF0000" style="background: url(background image) no-repeat center;">
<tr height="15%">
<td>&nbsp;</td>
</tr>
<tr height="70%">
<td><iframe width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0" scrolling="auto" name="inlineframe" allowtransparency="true" src=""></iframe></td>
</tr>
<tr height="15%">
<td>&nbsp;</td>
</tr>
</table>

The question....

When I run the coding in "IE" ... I get a white box where the iframe appears. When I run firefox... I get a truely transparent iframe. How can I make the iframe truely transparent in "IE"?

I want to eventually use the iframe for targeting so I can add changing advertisements.

I would also like to know if I can give the iframe a background image...

MaGiCSuN
02-05-2005, 03:38 PM
http://www.dont-stay.com/herwords/transiframes.php

:)

Love,
Mirna

Sappervet
02-05-2005, 03:51 PM
Thanks for the quick reply... but that doesn't exactly answer my question.

I have already read the article that you referred me to but it doesn't answer the question of why the difference between ie and firefox.

If you noticed... I already used the " allowtransparecy="true" " command.

Is it because ie requires a loaded page with a transparent background and firefox doesn't?

What if I don't have a page to load into the iframe. Can I still have the iframe show up as transparent in ie... it certianly does in firefox?

starlet
02-05-2005, 03:55 PM
IE and firefox are different browsers, made by different people, with different standards etc Lots of things show up differently in them because of the way they were each designed and intended to be.

MaGiCSuN
02-05-2005, 04:02 PM
do you also have added style="background-color: transparent;" to the <body> tag on each page that opens inside the iframe ? :)

If it still isn't working, then provide a link to the page you are having problems with.

Love,
Mirna