View Full Version : transparent iframes in mozilla/firefox


elysia
01-23-2005, 01:20 AM
Hello everyone:) just a quick question.
I'm making a layout which I'm planning to use a transparent iframe to allow the background to show through. But, the transparent iframes look very bad with mozilla/firefox and all that. Other than perhaps cutting out the part of the background I need and making it the static background of my iframe(which im afraid might cause trouble lining it up and such...) is there another way I can do this? I currently just have the background set to a random color and then you put a code in the iframe page and the page the iframe is in thats the SAME colour(hopefully that makes sense) so it sort of tricks it into being transparent I suppose?
Perhaps someone has an idea?
Thanks:)

kittycat
01-23-2005, 03:27 AM
Transparent iframes don't look bad in mozilla if you do it properly.
Add allowtransparency="true" to the iframe tag (IE)
On the page inside the iframe, add this to the body tag: style="background: transparent" (Mozilla)
It's when you use the chroma filter that it looks bad...

Monkey Bizzle
01-23-2005, 07:01 AM
if you need what kittycat said explained in more detail, check this out:

http://www.dont-stay.com/herwords/transiframes.php

elysia
01-23-2005, 02:16 PM
well i had no idea i was doing it wrong all along. lol thanks guys that was very helpful.