Hi guys,
iframe allowtransparency doesn't seem to work on IE7 and IE8. Users with OS Win7 don't have that same problem. Can anyone help?
Thanks, C.
Hi guys,
iframe allowtransparency doesn't seem to work on IE7 and IE8. Users with OS Win7 don't have that same problem. Can anyone help?
Thanks, C.
Short version for : allowTransparency by itself won't make an iframe show the parent page through. It is an IE-only flag that allows the framed document to be transparent, but the framed page must actually use a transparent background. If the iframe loads a third‑party site (for example an external domain), the parent cannot force that page transparent.
Practical checklist (build on 's suggestion):
allowTransparency="true" on the iframe (IE needs that flag)./* put this inside the page that is loaded into the iframe */
html, body {
height: 100%;
margin: 0;
background: transparent;
} html or body elsewhere (some styles set color on html only).Troubleshooting tips:
If making the embedded content transparent is not possible, consider alternatives: load the content via AJAX and insert into a parent DIV, or redesign so you don’t need iframe transparency. Thanks to for the iframe flag pointer and to for the follow‑up.
Jump to Post— shadowcrawler 0Try this
<iframe src="www.google.com" name="main" allowtransparency="true" width="820" height="550" frameborder="0" id="if_main"></iframe>
Try this
<iframe src="www.google.com" name="main" allowtransparency="true"
width="820" height="550" frameborder="0" id="if_main"></iframe> : - thanx...
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.