<?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>onlinecasinodemar.com &#187; ie bug</title>
	<atom:link href="http://www.onlinecasinodemar.com/tag/ie-bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.onlinecasinodemar.com</link>
	<description>WordPress Themes &#38; Webdesign</description>
	<lastBuildDate>Wed, 05 Oct 2011 13:04:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<meta name="generator" content="webdemar 3.0" />
		<item>
		<title>Superfish jQuery Menu IE z-index Bug</title>
		<link>http://www.onlinecasinodemar.com/webdesign/superfish-jquery-menu-ie-z-index-bug/</link>
		<comments>http://www.onlinecasinodemar.com/webdesign/superfish-jquery-menu-ie-z-index-bug/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 15:27:32 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Webdesign]]></category>
		<category><![CDATA[dropdown menu]]></category>
		<category><![CDATA[ie bug]]></category>
		<category><![CDATA[superfish]]></category>

		<guid isPermaLink="false">http://www.onlinecasinodemar.com/?p=216</guid>
		<description><![CDATA[<img width="280" height="210" src="http://www.onlinecasinodemar.com/wp-content/uploads/2009/02/superfish-jquery-dropdown.jpg" class="attachment-post-thumbnail wp-post-image" alt="superfish-jquery-dropdown" title="superfish-jquery-dropdown" />As a good and stable dropdown menu I&#8217;m using the Superfish jQuery menu plugin by Joel Birch. Superfish is an enhanced Suckerfish-style menu jQuery plugin that is quite easy to customize. With a lot of options it can be tailored to your needs. But thanks to our friend IE you might experience the z-index bug. [...]]]></description>
			<content:encoded><![CDATA[<img width="280" height="210" src="http://www.onlinecasinodemar.com/wp-content/uploads/2009/02/superfish-jquery-dropdown.jpg" class="attachment-post-thumbnail wp-post-image" alt="superfish-jquery-dropdown" title="superfish-jquery-dropdown" /><p>As a good and stable dropdown menu I&#8217;m using the <a href="http://users.tpg.com.au/j_birch/plugins/superfish">Superfish jQuery menu plugin by Joel Birch</a>. Superfish is an enhanced Suckerfish-style menu jQuery plugin that is quite easy to customize. With a lot of options it can be tailored to your needs. But thanks to our friend IE you might experience the z-index bug. The fix is very simple!<span id="more-216"></span></p>
<h3 class="clear">The IE z-index issue:</h3>
<p>I really like this dropdown menu and in Firefox (as almost always) everything worked properly. But then I tested in IE. The source code was similar to this</p>
<pre><code>&lt;div id='header'&gt;
    &lt;div id='nav' class='sf-menu'&gt;Here the menu&lt;/div&gt;
&lt;/div&gt;
&lt;div id='content'&gt;Here the content&lt;/div&gt;</code></pre>
<p>Both the header and the content div have <em>position:relative</em>. In IE the dropdown menu was displayed under the content div so the links in the dropdown were not clickable though the z-index of the menu list was set to 100. </p>
<h3>The fix is so simpel:</h3>
<p>After a bit of research I came accross the <a href="http://verens.com/archives/2005/07/15/ie-z-index-bug">IE z-index Bug on Klog &#8211; php, linux, ajax, javascript</a>. On this page Kae Verens describes the bug and gives an example. But the solution was some kind of unsatisfactory for me. But one of the commenters &#8211; Michael &#8211; posted a very <a href="http://verens.com/2005/07/15/ie-z-index-bug/comment-page-1/#comment-309">simple solution</a>.</p>
<p>You do not have to set the z-index on the menu or its children but on the two position:relative elements <em>header</em> and <em>content</em> (in my example). So I set:</p>
<pre><code>#header {
    z-index:2;
}
#content {
    z-index:1;
}</code></pre>
<p>and the problem was fixed! Thanks to Michael. This is basic CSS knowledge, but once you dived into the menu&#8217;s css it is hard to see <img src='http://www.onlinecasinodemar.com/wp-includes/images/smilies/icon_neutral.gif' alt=':-|' class='wp-smiley' /> </p>
<h3>Relevant Links:</h3>
<ul>
<li><a href="http://users.tpg.com.au/j_birch/plugins/superfish">Superfish &#8211; Suckerfish on &#8216;roids</a></li>
<li>Download &#8211; <a href="http://users.tpg.com.au/j_birch/plugins/superfish/#download">Superfish</a></li>
<li>Support &#8211; <a href="http://groups.google.com/group/jquery-en/">jQuery Mailing List</a></li>
<li><a href="http://webdemar.com/webdesign/tutorial-jquery-dropdown-menue-mit-superfish/">Tutorial: jQuery Dropdown Men&#252; mit Superfish</a> (German)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.onlinecasinodemar.com/webdesign/superfish-jquery-menu-ie-z-index-bug/feed/</wfw:commentRss>
		<slash:comments>162</slash:comments>
		</item>
	</channel>
</rss>

