<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: Z-index trouble</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Tue, 21 May 2013 16:14:16 +0000</pubDate>

<item>
<title>4rederick on "Z-index trouble"</title>
<link>http://themeshaper.com/forums/topic/z-index-trouble#post-21338</link>
<pubDate>Tue, 17 May 2011 17:20:01 +0000</pubDate>
<dc:creator>4rederick</dc:creator>
<guid isPermaLink="false">21338@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks, middlesister. I had all but given up hope. I owe you one. Give me a few years to master web programming and then I might have some wisdom you might deem wise. Until then, keep up the kindness.
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Z-index trouble"</title>
<link>http://themeshaper.com/forums/topic/z-index-trouble#post-21329</link>
<pubDate>Mon, 16 May 2011 20:29:40 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">21329@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;It's not thematic's z-index system, it's how css works. And you are certainly not the only one being frustrated and annoyed in trying to understand it. :)&#60;/p&#62;
&#60;p&#62;Z-index and positioning of elements are two of the trickier things to figure out. And of course, IE has its own way of doing things. If you want to read some nitty gritty details, see &#60;a href=&#34;http://sweatte.wordpress.com/css-tips/#zindex&#34; rel=&#34;nofollow&#34;&#62;http://sweatte.wordpress.com/css-tips/#zindex&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The default behaviour when no z-index is set is that the element that comes later in the source code will overlap the earlier ones. The z-index lets you override this and specify a stacking order, but in order to apply a z-index you need to &#60;em&#62;also&#60;/em&#62; have a positioning set like I wrote above. The highest z-index goes on top. Sounds simple, right?&#60;/p&#62;
&#60;p&#62;But - and here comes the tricky part -  you also need to consider the nesting of elements. When you specify a position on the #main div, the #access div that is &#60;em&#62;inside&#60;/em&#62; it will not be able to jump out of its container and the z-index will refer to its siblings inside of #main instead of the order of the whole document. In order for the #access div to move outside of its container, remove the positioning from #main (this will of course also make the z-index be ignored). This is similar to how absolute positioning works when the parent element has no positioning set vs if it has. In the first case, your absolute positioning will refer to the whole page, but as soon as the parent element has a positioning, your position:absolute will be relative to the parent element instead.&#60;/p&#62;
&#60;p&#62;Clear as mud? You can play around with &#60;a href=&#34;http://tjkdesign.com/articles/z-index/teach_yourself_how_elements_stack.asp&#34; rel=&#34;nofollow&#34;&#62;http://tjkdesign.com/articles/z-index/teach_yourself_how_elements_stack.asp&#60;/a&#62; to see how the different declarations make the elements behave.&#60;/p&#62;
&#60;p&#62;I am not 100% sure on what effect you are after, but if you want the access div to be above main and the header and footer divs on top of that, i suggest something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#header {
    position:relative
    z-index:7;
}
#access {
    position:relative;
    z-index:5;
}
#footer {
    position:relative;
    z-index:9;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If main has any positioning set, remove that declaration or bring back the default behaviour with&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#main {
    position:static;
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>4rederick on "Z-index trouble"</title>
<link>http://themeshaper.com/forums/topic/z-index-trouble#post-21328</link>
<pubDate>Mon, 16 May 2011 14:18:19 +0000</pubDate>
<dc:creator>4rederick</dc:creator>
<guid isPermaLink="false">21328@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I tried all that. I even have now re-structured the layout so that the access is inside the main div as a floating element. Still I can't get the footer and header on top. I've tried to work around it some by adjusting the image, so I guess that will have to do unless someone has some other device. Still not sure I understand thematic's z-indexing system.
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Z-index trouble"</title>
<link>http://themeshaper.com/forums/topic/z-index-trouble#post-21322</link>
<pubDate>Sun, 15 May 2011 05:46:18 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">21322@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;In general, z-index only applies to positioned elements, i.e. elements who also has position:absolute, position:relative or postition:fixed (the default is position:static). If one or more of these elements don't have a position defined, try giving them position:relative as well as the z-index. This might make them behave differently in other areas, but it makes the z-index work.
&#60;/p&#62;</description>
</item>
<item>
<title>4rederick on "Z-index trouble"</title>
<link>http://themeshaper.com/forums/topic/z-index-trouble#post-21321</link>
<pubDate>Sun, 15 May 2011 05:06:12 +0000</pubDate>
<dc:creator>4rederick</dc:creator>
<guid isPermaLink="false">21321@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Don't really understand why I can't just use this ...&#60;/p&#62;
&#60;p&#62;#access {&#60;br /&#62;
z-index:3;&#60;br /&#62;
}&#60;br /&#62;
#footer {&#60;br /&#62;
z-index:2;&#60;br /&#62;
}&#60;br /&#62;
#header {&#60;br /&#62;
z-index:1;&#60;br /&#62;
}&#60;br /&#62;
#main {&#60;br /&#62;
z-index:4;&#60;br /&#62;
}
&#60;/p&#62;</description>
</item>
<item>
<title>4rederick on "Z-index trouble"</title>
<link>http://themeshaper.com/forums/topic/z-index-trouble#post-21320</link>
<pubDate>Sun, 15 May 2011 04:45:13 +0000</pubDate>
<dc:creator>4rederick</dc:creator>
<guid isPermaLink="false">21320@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Yeh, I agree with you on all of it Jonny. Not sure why I went the way of making #menu-bg. Think it was one of those things that just left the mind without much thought, and it grew from there ... &#60;/p&#62;
&#60;p&#62;So anyway, I've taken it away, but now I'm back to where I was: trying to get access to layer behind footer and header, but above main. Gonna fiddle with z-index some more. Let me know if you have any farther suggestions. Thanks a bunch. Really appreciate the help on a late night!
&#60;/p&#62;</description>
</item>
<item>
<title>Jonny Janiero on "Z-index trouble"</title>
<link>http://themeshaper.com/forums/topic/z-index-trouble#post-21319</link>
<pubDate>Sun, 15 May 2011 04:11:48 +0000</pubDate>
<dc:creator>Jonny Janiero</dc:creator>
<guid isPermaLink="false">21319@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;thats interesting approach to a thematic theme, thumbs up for that.&#60;br /&#62;
you are really gonna hit trouble using so many z-indexes tho.&#60;br /&#62;
i cant see why you need to use them?&#60;/p&#62;
&#60;p&#62;the problem with links not clickable...&#60;br /&#62;
thats the -1000 on #main. as its sits within #wrapper, which hasn't been declared a z-index, therefore is 0.&#60;/p&#62;
&#60;p&#62;i changed #main back to 0, and the links are clickable.&#60;br /&#62;
i would say you dont need #menu-bg either. couldn't that image just be applied as the #access background.&#60;/p&#62;
&#60;p&#62;maybe needs a re-think
&#60;/p&#62;</description>
</item>
<item>
<title>4rederick on "Z-index trouble"</title>
<link>http://themeshaper.com/forums/topic/z-index-trouble#post-21318</link>
<pubDate>Sun, 15 May 2011 03:48:05 +0000</pubDate>
<dc:creator>4rederick</dc:creator>
<guid isPermaLink="false">21318@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I spoke too soon ... everything is good, except now the links to the blog titles aren't working. My guess is there is something over the top of it. What I don't understand is why the right sidebar seems to be on top, although it still resides in the same main div. Hmmm...
&#60;/p&#62;</description>
</item>
<item>
<title>4rederick on "Z-index trouble"</title>
<link>http://themeshaper.com/forums/topic/z-index-trouble#post-21317</link>
<pubDate>Sun, 15 May 2011 03:25:44 +0000</pubDate>
<dc:creator>4rederick</dc:creator>
<guid isPermaLink="false">21317@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Not sure if all these were necessary, but it works!&#60;/p&#62;
&#60;p&#62;#footer {&#60;br /&#62;
z-index: 2;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;.menu {&#60;br /&#62;
z-index: 1;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;.subsidiary {&#60;br /&#62;
z-index: 2;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;#menu-bg {&#60;br /&#62;
z-index:-10;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;#main {&#60;br /&#62;
z-index: -1000;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;#header {&#60;br /&#62;
z-index: 1;&#60;br /&#62;
}
&#60;/p&#62;</description>
</item>
<item>
<title>4rederick on "Z-index trouble"</title>
<link>http://themeshaper.com/forums/topic/z-index-trouble#post-21316</link>
<pubDate>Sun, 15 May 2011 03:08:35 +0000</pubDate>
<dc:creator>4rederick</dc:creator>
<guid isPermaLink="false">21316@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;&#60;a href=&#34;http://www.josephfrederick.com&#34; rel=&#34;nofollow&#34;&#62;www.josephfrederick.com&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>4rederick on "Z-index trouble"</title>
<link>http://themeshaper.com/forums/topic/z-index-trouble#post-21315</link>
<pubDate>Sun, 15 May 2011 03:02:09 +0000</pubDate>
<dc:creator>4rederick</dc:creator>
<guid isPermaLink="false">21315@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey guys. If anyone has Firebug and a quick second, would you mind peeking at my page and telling me what's wrong. Setting z-index but not working. Here's the layers I want:&#60;/p&#62;
&#60;p&#62;1 (on top): access and footer and header&#60;br /&#62;
2: menu-bg&#60;br /&#62;
3 (behind everything): main&#60;/p&#62;
&#60;p&#62;For the life of me, I can't get the menu-bg div to appear correctly behind the access div, in front of the main div, but behind the header and footer divs. Help?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
