View Full Version : Iframe
Xa'al
08-07-2002, 06:24 AM
I'm looking for a way to make the background of an IFRAME transparent so that there is no background color or image for the IFRAME. Any help is greatly appreciated.
Thank-you,
Xa'al
beetle
08-07-2002, 07:48 AM
All u need to know about that is here
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/dhtmlrefs.asp
Of course, that page says it's a Microsoft Extension to HTML, so a no-go in NS/Moz.
there may be another way to do it. Hopefully someone will know.
Xa'al
08-07-2002, 09:16 PM
I tried that and it didn't seem to work. However, I could be doing it wrong. Here's how I typed the code into my stylesheet:
IFRAME { background-color : sColor }
and then I tried:
IFRAME { background-color : transparent }
I also tried:
<IFRAME ALLOWTRANSPARENCY..........>
in the main tag. (The ...... are the rest of the code)
If I'm doing something wrong, please let me know.
beetle
08-07-2002, 09:24 PM
I think the page that is containted by the IFRAME has to have the style property background-color: transparent for the body and the IFRAME has to have the attribute ALLOWTRANSPARENCY = true
Vladdy
08-07-2002, 09:30 PM
.... any good reason why you can not put the content of an IFRAME into a DIV element??? This will make things easier and page HTML Strict compliant.....
Xa'al
08-08-2002, 03:10 AM
Thank-you for your help, it works the right way now. In regards to the DIV, I'm trying to maintain an entire page to a fixed size, and scrollable frame. If I can achieve this with DIV, then it's my mistake.
Thank-you once again for the help.
Xa'al
Vladdy
08-08-2002, 03:45 AM
<div style="overflow: auto;">
put content here
</div>
- this will give you the div element with the scrollbars when content exceeds the size that you specify
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.