# SWF over an IFRAME, Z-INDEX?

**URL:** <https://forum.kirupa.com/t/swf-over-an-iframe-z-index/153659>\
**Category:** web dev\
**Created:** [July 3, 2005, 2:02pm UTC](https://forum.kirupa.com/t/swf-over-an-iframe-z-index/153659 "2005-07-03T14:02:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![comadreja](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@comadreja](https://forum.kirupa.com/u/comadreja)\
**Post date:** [July 3, 2005, 2:02pm UTC](https://forum.kirupa.com/t/swf-over-an-iframe-z-index/153659/1 "2005-07-03T14:02:34Z")

</div>

Hi everyone and congrats for this useful and nice site!

I’m working on a site with a flash menu over an iframe, my HTML looks like this:

```auto

<html>
	<head>
		<style type="text/css">
			body{
				margin:0px;
			}
			iframe.x{
				position:absolute;
				left:200px;
				top:10px;
				width:400px;
				height:300px;
			}
			embed.x{
				position:absolute;
				left:200px;
				top:20px;
				width:400px;
				height:400px;
				z-index:2
			}
		</style>
	</head>
	<body>
		<iframe class="x" src="myIFRAMEcontent.html" frameborder="0" scrolling="no" noresize></iframe>
		<embed class="x" src="mySWF.swf" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</body>
</html>

```

and you can see it here:

[http://freewebs.com/comaexperimental/iframe](http://freewebs.com/comaexperimental/iframe)

It seems to work in IE 6 but has a weird behavior in FireFox 1.0.5 so… HOW CAN I ARCHIVE MY GOAL?

thaks.
