<?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>Advanced CSS Design Resources - last-child.com &#187; Z-Index</title>
	<atom:link href="http://www.last-child.com/category/css/z-index/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.last-child.com</link>
	<description>CSS Toys for Professional Web Developers</description>
	<lastBuildDate>Mon, 19 Dec 2011 18:30:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Background image for visited links</title>
		<link>http://www.last-child.com/background-image-for-visited-links/</link>
		<comments>http://www.last-child.com/background-image-for-visited-links/#comments</comments>
		<pubDate>Fri, 07 Apr 2006 02:42:46 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[:absolute]]></category>
		<category><![CDATA[:relative]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML Elements]]></category>
		<category><![CDATA[Id]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[Image Sprites]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Link]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[Unordered List]]></category>
		<category><![CDATA[Z-Index]]></category>

		<guid isPermaLink="false">http://www.last-child.com/background-image-for-visited-links/</guid>
		<description><![CDATA[I&#8217;ve been a recent convert to Design Meltdown. The site disects a visual theme and gives examples on how to use them and where they are being used. While exploring the latest post about sketches for the web, I noticed an interesting approach to the visited pages. The Breakdown The site has a series of [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.last-child.com/wp-content/uploads/2006/04/dmelt-visited.png" alt="Visited and unvisited screenshots on designmeltdown.com" /><br />
I&#8217;ve been a recent convert to <a href="http://www.designmeltdown.com/">Design Meltdown</a>. The site disects a visual theme and gives examples on how to use them and where they are being used. While exploring the latest post about <a href="http://www.designmeltdown.com/chapters/Sketchy/">sketches for the web</a>, I noticed an interesting approach to the visited pages.</p>
<h3>The Breakdown</h3>
<p>The site has a series of floated divs to display the screenshots. The screenshot is applied as the background image of the div with an inline style.  Inside the div is a link that is given display:block and a transparent background image.<br />
<code lang="HTML"></p>
<div webdeveloper-inline-style="background-image: url(http://www.designmeltdown.com/chapters/Sketchy/1/145_115/57982515.jpg);" class="RedXContainer">
<a id="_ctl6_lnkImage" title="http://www.outhousecomm.com/home.html" class="RedXLink" href="http://www.outhousecomm.com/home.html" target="_blank"></a><br />
<a id="_ctl6_lnkScreenShot" title="View a captured screen shot" class="RedXScreenShot" href="javascript:popUp('http://www.designmeltdown.com/displaySS.html?<br />
http://www.designmeltdown.com/chapters/Sketchy/1/445/57982515.jpg')">SCREENSHOT</a>
</div>
<p></code></p>
<h3>Great idea &#8211; room for improvement?</h3>
<p>While I think the visual design for these screenshots is well thought-out. I don&#8217;t like the underlying code. The screenshots are content; miniature representations of other sites. Adding them to the CSS is treating them as decorative elements. The text for each link is: &#8220;SCREENSHOT, &#8221; making the page unusable with the styles disabled. To give this page more structure and semantic strength, I would modify the underlying code as such:</p>
<h4>HTML Code</h4>
<p><code lang="HTML"></p>
<div id="screenshotthumbs">
<ul class="screenshotlist">
<li id="ss_ctl6_lnk">
<a href="http://www.outhousecomm.com/home.html" title="This link will open a new window for you to see outhouse.com" rel="external"><br />
<img src="http://www.designmeltdown.com/chapters/Sketchy/1/145_115/57982515.jpg" alt="www.outhousecomm.com screenshot"/><br />
<strong>Visit www.outhousecomm.com to see how they've used this technique</strong><br />
</a>
</li>
<p>...
</ul>
</div>
<p></code></p>
<h4>CSS Code</h4>
<p><code lang="CSS"><br />
.screenshotlist {float:left; list-style-type:none;}<br />
.screenshotlist li {float:left; margin:9px; }<br />
.screenshotlist a {display:block; width:146px; height:130px; position:relative; }<br />
.screenshotlist a strong {text-indent:-1000em; z-index:20; position: absolute; top:0; left:0; width:100%; height:100%; background:url(screenshot.png) no-repeat -154px 0; }<br />
.screenshotlist a:visited strong {background-position:0 0;}<br />
.screenshotlist a img {margin:5px 0 0 5px; border:none; z-index:1;}<br />
</code></p>
<h3>Benefits of the new code</h3>
<p><img src="http://www.last-child.com/wp-content/uploads/2006/04/screenshot.png" alt="screenshot mask" /><br />
The screenshots now have some structure; an unordered list with links full of good, crunchy content. Screenreaders and those without CSS will have access to the information. Javascript can be used to target links within the screenshotthumb div to <a href="http://www.last-child.com/should-a-web-site-open-pdf-files-in-a-new-window/">open  a new window without the need of inline scripting</a>. </p>
<p><strong>Cavaets: </strong>I haven&#8217;t tested this code yet. It&#8217;s very possible the z-index styles are not required. As an alternative, remove the margin on the image and replace it with a border. Add a rule to change the border color on hover and visited. </p>
<p>Design Meltdown is a great site for learning about design concepts. I&#8217;ve gleaned a number of nice ideas from them and would love to say I gave a bit of help back to them. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/background-image-for-visited-links/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Conflicting Z-Index in IE6</title>
		<link>http://www.last-child.com/conflicting-z-index-in-ie6/</link>
		<comments>http://www.last-child.com/conflicting-z-index-in-ie6/#comments</comments>
		<pubDate>Tue, 14 Mar 2006 03:35:37 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[:absolute]]></category>
		<category><![CDATA[:relative]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS2]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[Z-Index]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Internet Explorer 6]]></category>
		<category><![CDATA[Internet Explorer 7]]></category>

		<guid isPermaLink="false">http://www.last-child.com/conflicting-z-index-in-ie6/</guid>
		<description><![CDATA[Internet Explorer 6 has an issue with positioned elements that use z-index. Here&#8217;s the trouble I just had with this: I have a topnav consisting of an unordered list with a dropdown menu on one of the list elements. The dropdown is a nested unordered list with position:absolute and a z-index to sit on top [...]]]></description>
			<content:encoded><![CDATA[<p>Internet Explorer 6 has an issue with positioned elements that use z-index. Here&#8217;s the trouble I just had with this:</p>
<p>I have a topnav consisting of an unordered list with a dropdown menu on one of the list elements. The dropdown is a nested unordered list with  position:absolute and a z-index to sit on top of any page content below.  Fairly simple so far&#8230;</p>
<p>However, in IE6, the menu is obscured by an h5, random images, and paragraphs on various pages.  The z-index should make this list float on top of other elements, but it seems to be ineffective.</p>
<p><a href="http://www.quirksmode.org">PPK</a> summarized this problem on his post: <a href="http://www.quirksmode.org/bugreports/archives/2006/01/Explorer_z_index_bug.html">Explorer z-index bug:</a></p>
<blockquote><p>It appears that in Internet Explorer (windows) positioned elements do generate a new stacking context, starting with a z-index value of 0, causing the lime-green box to appear above the yellow box.</p>
<p>This is a serious violation of the CSS specifications, causing headaches and a lot of misunderstanding of what z-index really does.<cite><a href="http://www.quirksmode.org">PPK</a> </cite></p></blockquote>
<p>While crediting <a href="http://www.aplus.co.yu/css/z-pos/">Aleksandar Vacić</a> for first reporting this bug, PPK doesn&#8217;t mention Aleksandar&#8217;s simple solution. <strong>Give the parent a position:relative and z-index:1.</strong>.<br />
<iframe src="http://rcm.amazon.com/e/cm?t=csstoyslastch-20&amp;o=1&amp;p=8&amp;l=as1&amp;asins=0764579851&amp;md=10FE9736YVPPT7A0FBG2&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;m=amazon&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr" style="margin: 5px; width: 120px; height: 240px; float: right;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0"></iframe><br />
Now, of course it isn&#8217;t always that simple. There&#8217;s also the issue of subsequent objects that also have a z-index and what happens if their parent is also positioned with a z-index. Please take some time to visit Aleksandar&#8217;s web site if you are having this conflict.</p>
<h3>IE7 and more fun</h3>
<p>According to PPK&#8217;s web site, this has not been fixed in IE7 Beta2Preview. We&#8217;ll see how this works out. I&#8217;ve noticed some positioning bugs in IE7 myself. This is something to consider when considering the z-index happiness of <a href="http://24ways.org/advent/zs-not-dead-baby-zs-not-dead/">Andy Clarke</a></p>
<h3>More solutions</h3>
<p><a href="http://360.yahoo.com/profile-ktYYK_s5fqJ2Hu1ryv2QSL0-?cq=1">Hedger Wang</a> has an ingenious solution to the <a href="http://www.hedgerwow.com/360/bugs/css-select-free.html">conflict between z-index on elements and subsequent select elements</a>. He uses an iframe with z-index-1 that sits under the targeted element. I&#8217;ve used this negative z-index on some of the subsequent elements and it is helping. Fixing all of the pages will  be a long journey , but at least there is light at the end of the tunnel.</p>
<h3>Yet another hack/update</h3>
<p>I had to remove the negative z-index from the container as it was keeping a link with background image/text-indent, display:block, etc from having any hover activity. It acted as if it were under a layer. Other links in the container were fine. You&#8217;ve got to love IE6</p>
<h3>Yet another hack/update 4-30-06</h3>
<p>We were using an iframe with the src=&#8221;/&#8221;. Can you guess what happened?  Oh my goodness. We were loading the home page inside every other page on IE. So here&#8217;s the tip we learned&#8230; don&#8217;t use a page url for your invisible iframe, use an spacer.gif or something benign instead.  Better yet, get rid of the iframe if you find other solutions.  Which is what we ended up doing. We&#8217;ve messed with this thing for so long we&#8217;ve lost track of what&#8217;s doing what.<br />
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://www.cbc.ca/technology/story/2008/12/17/microsoft-security.html">Microsoft to issue emergency patch for Explorer security hole</a></li>
<li class="zemanta-article-ul-li"><a href="http://thenextweb.com/2008/12/16/dump-internet-explorer-at-least-for-now/">Dump Internet Explorer. You are Vulnerable.</a></li>
<li class="zemanta-article-ul-li"><a href="http://littlegreenfootballs.com/article/31490_Tech_Note-_IE6_Needs_an_Exorcism">Tech Note: IE6 Needs an Exorcism</a></li>
</ul>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/32bfa3b5-b81d-44f8-9248-aa2dbb0bcea7/" title="Zemified by Zemanta"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=32bfa3b5-b81d-44f8-9248-aa2dbb0bcea7" alt="Reblog this post [with Zemanta]"></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/conflicting-z-index-in-ie6/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Microsoft IE7 updates the select box</title>
		<link>http://www.last-child.com/microsoft-ie7-updates-the-select-box/</link>
		<comments>http://www.last-child.com/microsoft-ie7-updates-the-select-box/#comments</comments>
		<pubDate>Sun, 26 Feb 2006 01:05:18 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Form]]></category>
		<category><![CDATA[Form Select]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Online Resource]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Z-Index]]></category>

		<guid isPermaLink="false">http://www.last-child.com/microsoft-ie7-updates-the-select-box/</guid>
		<description><![CDATA[Microsoft has just announced IE7 will handle the select input as a modern browser should. It will now allow developers to use z-index to avoid overlapping and perhaps more artistic forms. Søren Madsen put together the utopia of form design, something every designer should look at and dream of possibilities. SELECT element in IE7 &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft has just announced IE7 will handle the select input as a modern browser should. It will now allow developers to use z-index to avoid overlapping and perhaps more artistic forms. Søren Madsen put together the <a href="http://www.picment.com/articles/css/funwithforms/">utopia of form design</a>, something every designer should look at and dream of possibilities.</p>
<blockquote cite="http://blogs.msdn.com/ie/archive/2006/01/17/514076.aspx">
<h4>SELECT element in IE7 &#8211; An Overview</h4>
<p>In IE6, the <acronym title="HyperText Markup Language">HTML</acronym> SELECT element was implemented through the  Windows Shell ListBox and Combobox controls. Some key features were  missing in the old version of the SELECT element, such as proper  support for <a href="http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/zindex.asp">z-index</a>, <a href="http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/title_1.asp">TITLE</a> support, and <a href="http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/zoom.asp">zoom</a>. Web developers had to write complex <acronym title="Cascading Style Sheets">CSS</acronym> and scripts to workaround these issues.</p>
<p>In IE7 however, we re-implemented the SELECT element to make  IE7 more standards-compliant. This new version does not use any Shell  controls any more. In fact, it is implemented totally through the  MSHTML framework, including styling, UI interaction, and rendering.  Thus the SELECT element in IE7 is more of an <acronym title="HyperText Markup Language">HTML</acronym> element than the  former legacy control.</p>
<p><cite><a href="http://blogs.msdn.com/ie/archive/2006/01/17/514076.aspx">IEBlog</a></cite></p></blockquote>
<h3>Form design is frustrating.</h3>
<p>Form elements are up to the browser for final presentation unless you get into some tricky <acronym title="Cascading Style Sheets">CSS</acronym> and JS solutions and those are not necessarily cross-browser solutions. One particular problem I’ve experienced was with the <a href="http://www.kryogenix.org/code/browser/nicetitle/">nicetitles</a> javascript that creates a nice popup box with the text of a title attribute on hover. I tried to use this on an insurance quote form to give the visitor better feedback on what was needed. IE6 would place the inputs on top of the popup window. I then tried moving the popup farther to the side to avoid this and that just looked hokey. So, I gave up on the idea. It would be interesting to test this now with IE7.</p>
<p>I’m also intrigued by the ability to use the title attribute on the select object. Normally, I would place the title on the label. However there may be times when the visual design requires hiding the label. Placing a title on the select would be a great way of letting people know the page may refresh or whatever action the select box leads to.</p>
<p>With rumors floating of an IE7 Beta2 developer release within a few weeks, we should begin looking for pages to test these new attributes on.</p>
<p>&#8211;This was originally published on <a xhref="http://www.tdrake.net" rel="bookmark">www.tdrake.net</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/microsoft-ie7-updates-the-select-box/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Z-index conflict with Flash and DHTML widgets</title>
		<link>http://www.last-child.com/z-index-conflict-with-flash-and-dhtml-widgets/</link>
		<comments>http://www.last-child.com/z-index-conflict-with-flash-and-dhtml-widgets/#comments</comments>
		<pubDate>Sun, 26 Feb 2006 00:37:31 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Z-Index]]></category>

		<guid isPermaLink="false">http://www.last-child.com/z-index-conflict-with-flash-and-dhtml-widgets/</guid>
		<description><![CDATA[I’m working on a project that has a Flash movie and a DHTML dropdown menu on the same page. Flash movies like to sit on top of the page and the dropdown would slide behind the movie. Since this isn’t what I wanted, I needed to find a way to make the it have a [...]]]></description>
			<content:encoded><![CDATA[<p>I’m working on a project that has a <a href="http://www.macromedia.com">Flash</a> movie and a DHTML dropdown menu on the same page.  Flash movies like to sit on top of the page and the dropdown would slide behind the movie.  Since this isn’t what I wanted, I needed to find a way to make the it have a lower <a href="http://www.w3.org/TR/REC-CSS2/visuren.html">z-index</a> than the dropdown.</p>
<p>I did a <a href="http://www.tdrake.net/standards-based-web-development-resources-made-even-easier/">Standardista Search</a> for a cure and didn’t see it. But a quick message to the <a href="http://webstandardsgroup.org/">Web Standards Group</a> returned the solution. It’s actually pretty easy.</p>
<h3>UFO Flash detection and insertion script</h3>
<p>I’m using the <a title="Unobtrusive Flash Object" href="http://www.bobbyvandersluis.com/ufo/">UFO JavaScript</a> to detect the browser’s compatibility with the Flash movie and insert it on the fly. This method provides good default content to those without Flash and valid, shiny, happy Flash to those with it.</p>
<p>UFO gives you the ability to insert parameters into the movie and this is what you need to cure the z-index issue. You need to set the <strong>wmode</strong> parameter to “<em>transparent</em>.”</p>
<p><code>    var FO = { movie:"swf/myMovie.swf", width:"300", height:"120",      majorversion:"6", build:"40", wmode:"transparent" }</code></p>
<p>That’s all there is to it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/z-index-conflict-with-flash-and-dhtml-widgets/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

