473,394 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

iFrame - Transparent background.

gsb

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
Jul 20 '05 #1
5 20607
>>>>> "gsb" == gsb <gs*@QWest.net> 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. (-:
Jul 20 '05 #2
gsb
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
Jul 20 '05 #3

Unregistered
-----------------------------------------------------------------------
Posted via http://www.forum4designers.co
-----------------------------------------------------------------------
View this thread: http://www.forum4designers.com/message30341.htm

Jul 20 '05 #4

<iframe src="qwe.htm" width="250" marginwidth="10" height="250
marginheight="10" scrolling="auto" allowtransparency="true
style="position:absolute; left:50px; top:50px"></iframe>

a script like that should work just fine

Unregistered
-----------------------------------------------------------------------
Posted via http://www.forum4designers.co
-----------------------------------------------------------------------
View this thread: http://www.forum4designers.com/message30341.htm

Jul 20 '05 #5
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
Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Martial Spirit | last post by:
Hello- I was amazed at the suckerfish drop-downs from AListApart.com. They work great except for one thing, if I position the drop-downs over an iframe element, on mouseover the menus disappear....
4
by: Keon | last post by:
Hoi Do someone know how i can make the background of a iframe transparancy? I already tried it with filter: Alpha(Opacity=50,); but it also make the text transperancy. do someone know how to...
2
by: purkka | last post by:
Hi I have IFRAME on a main page having a background picture (bg.gif). A page of the IFRAME does NOT have background picture, only white bgcolor. FireFox: I can see the main page's...
3
by: synergy_711 | last post by:
I feel like this should be fairly easy but I have been struggling with this for sometime. I have not been able to find someone who's had the same problem as mine yet. ...
1
by: Sura | last post by:
Hi I have a flash interactive window which has html links and this appears on an html page. This window can be moved with the mouse on the html page. The html page has an iFrame too. When the...
1
by: RuthC | last post by:
Hi, Is there a chance to use an iframe without the "src"-attribute? Can I put the source code inside the <iframe></iframe> tag? I just need an area with scrollbars without an externel document. ...
1
by: satishbjoshi | last post by:
Hi, can you please help me with the subjected issue. i am trying to make the background transparent of an iframe which is compatible with html 4.0. i am using the follwing code <iframe...
1
by: CJ4R | last post by:
Have an issue with an iframe in FF blocking links in a z-index layer behind the layer containing the iframe. It works in IE. I can't change the layer index of the iframe because it's content needs to...
1
by: cleary1981 | last post by:
hi, I am using an iframe on a site but i want the image behind the frame to show through. I have tried setting background:none and background:transparent in my css but it hasnt worked. Has anyone...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.