Charlottezweb

General Conversation => Script Chat => Topic started by: stuie on April 28, 2009, 12:59:57 PM

Title: Help With Transparent Backgrounds In IE
Post by: stuie on April 28, 2009, 12:59:57 PM
For the life of me I can't figure out why I'm getting a white background as opposed to a transparent background in IE. This happens when I bring in another page into an iframe. On the page being placed in the iframe I have the foolowing script;

<style type="text/css">
body {background-color: transparent}
       </style>

On the page that the iframe is in, I used the following;

<iframe width=850 height=450 src="Clear.htm" allowtranparency="true" "align=center frameborder=0 name="Body"> </iframe>

Also on that same page, I have the following CSS script;

body {
   background-image: url(Graphics/NewTile03.JPG);
   background-color:transparent;
}

The only thing I can think of is that the transparency is canceled because I'm using a tiled image. Can anyone help me with this?
Title: Re: Help With Transparent Backgrounds In IE
Post by: Jason on April 28, 2009, 02:40:53 PM
Jpg's don't support transparency -- without seeing the page in question, that would be my assumption of what your problem is.

Title: Re: Help With Transparent Backgrounds In IE
Post by: dania on April 30, 2009, 02:44:34 PM
What about opacity?

http://www.mandarindesign.com/opacity.html (http://www.mandarindesign.com/opacity.html)

You could also look at this link:

http://archivist.incutio.com/viewlist/css-discuss/69488 (http://archivist.incutio.com/viewlist/css-discuss/69488)
Good luck Stuie!
;D