Note that there are some explanatory texts on larger screens.

plurals
  1. POTrouble Layering in CSS
    text
    copied!<p>I'm trying to layer some elements using <code>z-index</code> and it's not working at all. </p> <p>Here's the CSS: </p> <pre><code> ul.ui-tabs-nav {list-style:none; float:left; display:block;padding:0; margin:6px 0px 0px 0px; width:85px; } ul.ui-tabs-nav li {padding:0px 7px; height:64px; background:url(/templates/gspm_home/images/tab_bak.gif) top left no-repeat;} ul.ui-tabs-nav li.ui-tabs-selected {z-index:100; display:block; background:url(/templates/gspm_home/images/tab_bak_current.gif) top left no-repeat; overflow:visible; } .ui-tabs-panel { z-index:1; width:360px; height:256px; padding:0;background:#fff; float:right; margin-top:6px;} </code></pre> <p>When the <code>ui-tabs-selected</code> class is invoked, there is supposed to be a background image that layer above the <code>ui-tabs-panel</code>. But nothing happens.</p> <p>Here is the html markup:</p> <pre><code>&lt;ul class="ui-tabs-nav"&gt; &lt;li class=""&gt; &lt;a href="#1" class="blue"&gt; Link&lt;/a&gt;&lt;/li&gt; &lt;li class="ui-tabs-selected"&gt; &lt;a href="#2" class="blue"&gt;Link&lt;/a&gt;&lt;/li&gt; &lt;li class=""&gt; &lt;a href="#3" class="blue"&gt;&lt;/a&gt;&lt;/li&gt; &lt;li class=""&gt; &lt;a href="#4" class="blue"&gt;Link&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt; &lt;div style="" class="leading ui-tabs-panel ui-tabs-hide" id="1"&gt; Content &lt;/div&gt; &lt;div style="" class="leading ui-tabs-panel" id="2"&gt; Content &lt;/div&gt; &lt;div style="" class="leading ui-tabs-panel ui-tabs-hide" id="3"&gt; Content &lt;/div&gt; &lt;div style="" class="leading ui-tabs-panel ui-tabs-hide" id="4"&gt; Content &lt;/div&gt; </code></pre> <p>What am I missing? </p> <p><a href="http://www.gspm.org/" rel="nofollow noreferrer">www.gspm.org</a> - site's under construction. The section in question are the rotating tabs. Uses jQuery UI Tabs plugin.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload