Iframe not transperent in ie 6!

Status
Not open for further replies.

Teensweb

New Member
Messages
352
Reaction score
1
Points
0
I have an Iframe with the below code:
HTML:
<iframe name="I1" src="anyfile.html" width="311" height="190" scrolling="auto" align="top" frameborder="0" marginwidth="0"
marginheight="0" allowtransparency="true" opacity=0 >
It is transparent in firefox but not in my Internet Explorer
 

woiwky

New Member
Messages
390
Reaction score
0
Points
0
Why not just use css?

HTML:
<iframe name="I1" src="http://www.google.com" width="311" height="190" scrolling="auto" align="top" frameborder="0" marginwidth="0"
marginheight="0" style="opacity: 0.0; filter: alpha(opacity=0);"></iframe>

Or if you want it to be invisible but still affect the content flow (I assume this since you're using 0 opacity), you can use style="visibility: hidden;" instead.
 

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
I'm not sure if this applies, but if you were to use transparent images in IE6 as well, the image would not be transparent and would have a grey background. This is simply because IE6 doesn't understand that kind of image. IE7 and Firefox, along with many other modern PC/mobile browsers will understand these things. I'd code for only IE7 and FF3, and display a message on your site that tells people the site is best viewed in "x".
 

nunoabc

New Member
Messages
151
Reaction score
0
Points
0
You're a bit wrong, but i understood you. Yes the IE6 shows up transparency, in GIF images. In PNG you need to change the transparent reference to another one. And it isn't only the FF3 that shows transparency with PNG... FF2 already do it...
BTW you shouldn't make pages with the phrase "best viewed in", other web developers will think that you suck at all...
Back to topic: Teensweb, you should at least end the iFrame tag. you should use correct code. CSS is almost the answer to everything.
 

Teensweb

New Member
Messages
352
Reaction score
1
Points
0
But its not working
Edit:
can anyone tell me how to close this thread
 
Last edited:
Status
Not open for further replies.
Top