PDA

View Full Version : transparent backround for iframe?


lisabella3686
08-11-2003, 12:11 AM
Hello,

I was wondering if it is possible to have an iframe with a transparent background so that I don't have to crop my background and place it in each of my pages. If you have any other solutions, those would be appreciated..thanx, Lisa


here is my site as of now

http://lisa.infocentre.net/flash.htm


just ignore the flash, it's a work in progress...scroll down to the "click"

Mr J
08-11-2003, 03:44 PM
In the document that is going to load the Iframe include:

allowtransparency="true"

in the opening Iframe tag.


In the document to be loaded into the Iframe include:

STYLE="background-color:transparent"

in the opening BODY tag.

cryonic
08-12-2003, 04:11 PM
U may like to refer to this website's layout as well.

http://cby.niira.net

:)

kansel
08-12-2003, 05:16 PM
cby.niira.net isn't exactly a transparent iframe. although it looks real nice in IE, it fails miserably in Mozilla/Netscape6 once you start scrolling. Why didn't they use a background-attachment:fixed on the framed page?

shlagish
08-12-2003, 07:53 PM
allowtransparency="true"

wtf??
where dyou put that in?

kansel
08-12-2003, 08:36 PM
you have it in the right place. unfortunately IE doesn't recognize it. it looks excellent in netscape7 though. I don't know the way around this in IE though.

shlagish
08-12-2003, 08:37 PM
What do you mean I have it in the right place?

Mr J
08-12-2003, 10:16 PM
allowtransparency="true"

wtf??
where dyou put that in?


In the opening Iframe tag




lisabella3686

Your window is a fixed size of

width=986,height=703

This is no good for 800 x 600 resolutions

kansel
08-13-2003, 03:15 AM
sorry about that, shlagish. I thought I was replying to the originator of the thread.

this page has the allowtransparency="true" in the right place, as an attribute to the iframe tag.

MotherNatrsSon
08-13-2003, 03:55 AM
So it sounds like all you need to do is put what Mr. J said to put into the document, in your case doane.htm, this:


Mr. J

In the document to be loaded into the Iframe include:

STYLE="background-color:transparent"

in the opening BODY tag.

MNS