<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Leosquarez - Website Design and Development &#187; z-index</title>
	<atom:link href="http://www.leosquarez.com/tag/z-index/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leosquarez.com</link>
	<description>Website Design and Development</description>
	<lastBuildDate>Wed, 17 Aug 2011 03:59:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Fix IE7 z-index Problem</title>
		<link>http://www.leosquarez.com/how-to-fix-ie7-z-index-problem/</link>
		<comments>http://www.leosquarez.com/how-to-fix-ie7-z-index-problem/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 07:19:29 +0000</pubDate>
		<dc:creator>leosquarez</dc:creator>
				<category><![CDATA[Condition EI6]]></category>
		<category><![CDATA[Interesting from the web]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Crossing browser]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[IE8]]></category>
		<category><![CDATA[z-index]]></category>

		<guid isPermaLink="false">http://www.leosquarez.com/?p=205</guid>
		<description><![CDATA[If you have a dropdown menu that works fine in all the browser a part from IE 7 and you have a problem like this one:
Z-index work in Internet Explorer 7 (and lower )a different way:
“In  Internet Explorer positioned elements generate a new stacking  context,  starting with a z-index value of 0. [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a dropdown menu that works fine in all the browser a part from IE 7 and you have a problem like this one:</p>

<a href='http://www.leosquarez.com/how-to-fix-ie7-z-index-problem/good-browser/' title='Good Browser'><img width="150" height="150" src="http://www.leosquarez.com/wp-content/uploads/2011/01/good-browser-150x150.jpg" class="attachment-thumbnail" alt="Good Browser" title="Good Browser" /></a>
<a href='http://www.leosquarez.com/how-to-fix-ie7-z-index-problem/bad-browser/' title='Bad Browser'><img width="150" height="150" src="http://www.leosquarez.com/wp-content/uploads/2011/01/bad-browser-150x150.jpg" class="attachment-thumbnail" alt="Bad Browser" title="Bad Browser" /></a>

<p>Z-index work in Internet Explorer 7 (and lower )a different way:</p>
<blockquote><p>“In  Internet Explorer positioned elements generate a new stacking  context,  starting with a z-index value of 0. Therefore z-index doesn’t  work  correctly”</p></blockquote>
<p>To fix z-index issue in ie give to the parent element a higher z-index actual fixes the bug!!!</p>
<p>WRONG:</p>
<blockquote><p>&lt;ul&gt;<br />
&lt;li&gt;<br />
&lt;ul class=&#8221;DROPDOWN&#8221;&gt;<br />
&lt;li&gt; &#8230;. &lt;/li&gt;<br />
&lt;li&gt; &#8230;. &lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p>&lt;div class=&#8221;SLIDER-JQUERY&#8221;&gt;<br />
&#8230;&#8230;&#8230;..<br />
&lt;/div&gt;</p></blockquote>
<p>FIXED</p>
<blockquote><p>&lt;ul&gt;<br />
&lt;li style=&#8221;z-index:999999&#8243;&gt;<br />
&lt;ul class=&#8221;DROPDOWN&#8221;&gt;<br />
&lt;li&gt; &#8230;. &lt;/li&gt;<br />
&lt;li&gt; &#8230;. &lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p>&lt;div class=&#8221;SLIDER-JQUERY&#8221;&gt;<br />
&#8230;&#8230;&#8230;..<br />
&lt;/div&gt;</p></blockquote>
<p>Try and let me know..</p>
<img src="http://www.leosquarez.com/?ak_action=api_record_view&id=205&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.leosquarez.com/how-to-fix-ie7-z-index-problem/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Embed Video/Flash Z-index Issue &#8211; 2</title>
		<link>http://www.leosquarez.com/embed-videoflash-z-index-issue-2/</link>
		<comments>http://www.leosquarez.com/embed-videoflash-z-index-issue-2/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 06:14:57 +0000</pubDate>
		<dc:creator>leosquarez</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[object embed]]></category>
		<category><![CDATA[video embed]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[z-index]]></category>
		<category><![CDATA[z-index video embed ojbect]]></category>

		<guid isPermaLink="false">http://www.leosquarez.com/?p=28</guid>
		<description><![CDATA[Alternative solution to fix the Z-index embed video or flash issue:
&#8212;&#8212;
Add this code in your head
&#60;script type=&#8221;text/javascript&#8221; src=&#8221;swfobject.js&#8221;&#62;&#60;/script&#62;
&#60;script type=&#8221;text/javascript&#8221;&#62;
swfobject.embedSWF(&#8221;URL-VIDEO&#8220;, &#8220;UNIQUE-NAME&#8220;, &#8220;WIDTH&#8220;, &#8220;HEIGHT&#8220;, &#8220;9.0.0&#8243;, false,
false,
{wmode:&#8221;opaque&#8221;,quality:&#8221;high&#8221;,bgcolor:&#8221;#000000&#8243;,salign:&#8221;tl&#8221;},
{id:&#8221;UNIQUE-NAME&#8220;,name:&#8221;UNIQUE-NAME&#8220;}
);
&#60;/script&#62;

&#8212;&#8211;

Add this in the body where you want to add the script:

&#60;div id=&#8221;UNIQUE-NAME&#8220;&#62;&#60;/div&#62;

&#8212;&#8211;

DONWLOAD THE JAVASCRIPT HERE:

Download &#8220;swfobject.js&#8221;
]]></description>
			<content:encoded><![CDATA[<p>Alternative solution to fix the Z-index embed video or flash issue:</p>
<p>&#8212;&#8212;</p>
<p>Add this code in your head<a href="http://code.google.com/p/swfobject/"></a></p>
<p>&lt;script type=&#8221;text/javascript&#8221; src=&#8221;swfobject.js&#8221;&gt;&lt;/script&gt;</p>
<div id=":79">&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
swfobject.embedSWF(&#8221;<strong>URL-VIDEO</strong>&#8220;, &#8220;<strong>UNIQUE-NAME</strong>&#8220;, &#8220;<strong>WIDTH</strong>&#8220;, &#8220;<strong>HEIGHT</strong>&#8220;, &#8220;9.0.0&#8243;, false,<br />
false,<br />
{wmode:&#8221;opaque&#8221;,quality:&#8221;high&#8221;,bgcolor:&#8221;#000000&#8243;,salign:&#8221;tl&#8221;},<br />
{id:&#8221;<strong>UNIQUE-NAME</strong>&#8220;,name:&#8221;<strong>UNIQUE-NAME</strong>&#8220;}<br />
);<br />
&lt;/script&gt;</div>
<div></div>
<div>&#8212;&#8211;</div>
<div></div>
<div>Add this in the body where you want to add the script:</div>
<div></div>
<div>&lt;div id=&#8221;<strong>UNIQUE-NAME</strong>&#8220;&gt;&lt;/div&gt;</div>
<div></div>
<div>&#8212;&#8211;</div>
<div></div>
<div>DONWLOAD THE JAVASCRIPT HERE:</div>
<div></div>
<div><a href="http://code.google.com/p/swfobject/">Download &#8220;swfobject.js&#8221;</a></div>
<img src="http://www.leosquarez.com/?ak_action=api_record_view&id=28&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.leosquarez.com/embed-videoflash-z-index-issue-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embed Video/Flash Z-index Issue</title>
		<link>http://www.leosquarez.com/embed-videoflash-z-index-issue/</link>
		<comments>http://www.leosquarez.com/embed-videoflash-z-index-issue/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 06:07:42 +0000</pubDate>
		<dc:creator>leosquarez</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[object embed]]></category>
		<category><![CDATA[video embed]]></category>
		<category><![CDATA[z-index]]></category>
		<category><![CDATA[z-index video embed ojbect]]></category>

		<guid isPermaLink="false">http://www.leosquarez.com/?p=25</guid>
		<description><![CDATA[Today i add a video in one of my client web site and i realise that the drop down menu was disappearing below the video.
The video embedding code was:
&#60;object height=&#8221;340&#8243; width=&#8221;560&#8243;&#62;
&#60;param name=&#8221;movie&#8221; value=&#8221;URL-VIDEO&#8221;&#62;
&#60;param name=&#8221;allowFullScreen&#8221; value=&#8221;true&#8221;&#62;
&#60;param name=&#8221;wmode&#8221; value=&#8221;opaque&#8221;&#62;
&#60;param name=&#8221;allowscriptaccess&#8221; value=&#8221;always&#8221;&#62;&#60;embed src=&#8221;URL-VIDEO&#8221; type=&#8221;application/x-shockwave-flash&#8221; allowscriptaccess=&#8221;always&#8221; allowfullscreen=&#8221;true&#8221; height=&#8221;WIDTH&#8221; width=&#8221;HEIGH&#8221;&#62;
&#60;/object&#62;
I realise that was a Z-INDEX issue (more info on z-index), [...]]]></description>
			<content:encoded><![CDATA[<p>Today i add a video in one of my client web site and i realise that the drop down menu was disappearing below the video.</p>
<p>The video embedding code was:</p>
<p>&lt;object height=&#8221;340&#8243; width=&#8221;560&#8243;&gt;<br />
&lt;param name=&#8221;movie&#8221; value=&#8221;URL-VIDEO&#8221;&gt;<br />
&lt;param name=&#8221;allowFullScreen&#8221; value=&#8221;true&#8221;&gt;<br />
&lt;param name=&#8221;wmode&#8221; value=&#8221;opaque&#8221;&gt;<br />
&lt;param name=&#8221;allowscriptaccess&#8221; value=&#8221;always&#8221;&gt;&lt;embed src=&#8221;URL-VIDEO&#8221; type=&#8221;application/x-shockwave-flash&#8221; allowscriptaccess=&#8221;always&#8221; allowfullscreen=&#8221;true&#8221; height=&#8221;WIDTH&#8221; width=&#8221;HEIGH&#8221;&gt;<br />
&lt;/object&gt;</p>
<p>I realise that was a Z-INDEX issue (<a title="z-index" href="http://tjkdesign.com/articles/z-index/teach_yourself_how_elements_stack.asp">more info on z-index</a>), i did check on the web for few solution.</p>
<p>First solution that i found was:</p>
<h2>SWFObject, Flash and the z-index</h2>
<p>This solution suggest to:<em><br />
</em></p>
<ul>
<li><em>Set wmode=&#8221;opaque&#8221; </em>combined with <em>positioning</em></li>
<li>Wrap the object with a div <code>with position: relative and set the object </code><code>position: absolute</code>.</li>
</ul>
<p><em>CODE</em></p>
<pre>#wrapper { position: relative; }
#overlay { position: absolute; }

-----
<pre>&lt;script type="text/javascript"&gt;

   var flashvars = {};
   var params = { <strong>wmode: "opaque"</strong> };
   var attributes = {};

   swfobject.embedSWF("video.swf", "flash", "width", "height", "7",
                      "expressinstall.swf", flashvars, params, attributes);

&lt;/script&gt;</pre>
<p>-----</p>
<pre>&lt;object id="flashcontent" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400"&gt;
   &lt;param name="movie" value="movie.swf" /&gt;
   &lt;param name="wmode" value="opaque" /&gt;

   &lt;!--[if !IE]&gt;--&gt;
   &lt;object type="application/x-shockwave-flash" data="video.swf" width="550" height="400"&gt;
   &lt;param name="wmode" value="opaque" /&gt;
   &lt;!--&lt;![endif]--&gt;

      &lt;p&gt;Please update your Flash Player&lt;/p&gt;

   &lt;!--[if !IE]&gt;--&gt;
   &lt;/object&gt;
   &lt;!--&lt;![endif]--&gt;

&lt;/object&gt;</pre>
</pre>
<img src="http://www.leosquarez.com/?ak_action=api_record_view&id=25&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.leosquarez.com/embed-videoflash-z-index-issue/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

