Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > iFrame - Transparent background.

Reply
Thread Tools

iFrame - Transparent background.

 
 
gsb
Guest
Posts: n/a
 
      01-09-2004

Is there any way to make the background of an iFrame (object) transparent?
The iFrame is in a 'floating' DIV and I want the underlying HTML page to
show through as a background.

Thanks,

gsb


 
Reply With Quote
 
 
 
 
Berend de Boer
Guest
Posts: n/a
 
      01-09-2004
>>>>> "gsb" == gsb <> writes:

gsb> Is there any way to make the background of an iFrame (object)
gsb> transparent? The iFrame is in a 'floating' DIV and I want
gsb> the underlying HTML page to show through as a background.

If you use a background image that is a PNG with an alpha channel I
suppose it works fine. Style:

background: transparent url(background.png) repeat;


--
Regards,

Berend. (-:
 
Reply With Quote
 
 
 
 
gsb
Guest
Posts: n/a
 
      01-09-2004

> If you use a background image that is a PNG with an alpha channel I
> suppose it works fine. Style:
>
> background: transparent url(background.png) repeat;


Nope. Doesn't seem to work.
It's like the iFrame sets up a canvas: you can paint on it all you want to
but you can not see through it.

Thanks,

gsb


 
Reply With Quote
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      02-12-2004
gsb wrote:

Please include a short attribution line next time for your readers to
see who wrote what.
vvvvvvvvvvvvvvv
>> If you use a background image that is a PNG with an alpha channel I
>> suppose it works fine. Style:
>>
>> background: transparent url(background.png) repeat;

>
> Nope. Doesn't seem to work.
> It's like the iFrame sets up a canvas: you can paint on it all you want to
> but you can not see through it.


It works in working UAs, even without the image. It does not work
either way in IE.

For IE, you need to put the IFRAME as child of a block element, say a
DIV, format this and the formatting will be inherited by the IFRAME.

BTW: You are off-topic, try comp.infosystems.www.authoring.stylesheets


PointedEars
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iframe onclick or transparent click through? ryanmhuc@yahoo.com Javascript 0 04-10-2009 08:18 PM
Targeting a parent iframe from a sub-iframe albanitus@yahoo.com HTML 0 11-15-2006 04:40 PM
IFrame transparent backgrounds in IE Michael Laplante HTML 1 05-27-2006 09:00 AM
problems with transparent iframe and IE wim delvaux HTML 2 07-18-2005 03:00 AM
Get form values from iframe (1) to iframe (2) inside a layer in iframe (1) Daedalous Javascript 3 01-16-2004 11:08 AM



Advertisments