<?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; position</title>
	<atom:link href="http://www.last-child.com/category/css/position/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>A quick CSS3 sibling test with the video tag</title>
		<link>http://www.last-child.com/css3-sibling-with-video-tag/</link>
		<comments>http://www.last-child.com/css3-sibling-with-video-tag/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 15:56:31 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[:absolute]]></category>
		<category><![CDATA[:block]]></category>
		<category><![CDATA[:focus]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Siblings]]></category>

		<guid isPermaLink="false">http://www.last-child.com/?p=240</guid>
		<description><![CDATA[I am working on a little widget that uses the html5 video tag on one of my test sites: Fyvr.net. I wanted to display related information when the video is playing. The sibling selector makes this easy. Here&#8217;s the basic markup &#60;li> &#60;video>...&#60;/video> &#60;p>...&#60;/p> &#60;/li> I wanted the paragraph to appear when the video is [...]]]></description>
			<content:encoded><![CDATA[<p>I am working on a little widget that uses the html5 video tag on one of my test sites: <a href="http://fyvr.net">Fyvr.net</a>.<br />
I wanted to display related information when the video is playing.  The sibling selector makes this easy. </p>
<p>Here&#8217;s the basic markup</p>
<pre><code lang="HTML">
&lt;li>
&lt;video>...&lt;/video>
&lt;p>...&lt;/p>
&lt;/li>
</code>
</pre>
<p>I wanted the paragraph to appear when the video is selected. So here&#8217;s the simple CSS</p>
<pre><code lang="CSS">
section#videolist li {
	position:relative;
}
section#videolist li p {
	display:none;
	position:absolute;
	bottom:-100px;
	left:0;
}
section#videolist li video:focus+p {
	display:block;
}
</code></pre>
<p>The sibling selector (+) is telling the browser to display the paragraph as block when its video brother has focus. This is a rough test. There could be some accessibility issues and I&#8217;ll need to test this out. Obviously this will not work in Internet Explorer. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/css3-sibling-with-video-tag/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Class Equals Screen Reader Info</title>
		<link>http://www.last-child.com/class-equals-screen-reader-info/</link>
		<comments>http://www.last-child.com/class-equals-screen-reader-info/#comments</comments>
		<pubDate>Sat, 21 Jul 2007 13:10:09 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[:absolute]]></category>
		<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[Table Header]]></category>
		<category><![CDATA[Table Header Scope]]></category>
		<category><![CDATA[Table Summary]]></category>
		<category><![CDATA[Yahoo!]]></category>

		<guid isPermaLink="false">http://www.last-child.com/class-equals-screen-reader-info/</guid>
		<description><![CDATA[I&#8217;ve been using a little CSS trickery to hide content and data from the average user. I hate to mention it too often as it can open pandora&#8217;s box. There was a recent thread on the Microformat&#8217;s discussion list about this very topic. The gist of many programmers is that data worth sharing is data [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using a little CSS trickery to hide content and data from the average user. I hate to mention it too often as it can open pandora&#8217;s box. There was a recent thread on the Microformat&#8217;s discussion list about this very topic. The gist of many programmers is that data worth sharing is data worth displaying.</p>
<p>However, there are times when your UED provides a design that lacks visual hooks for your screen reader users. A good example may be the ever-popular search form. Most sites will have an input and a button that says &#8220;search&#8221;. The label for this input is nowhere to be found.</p>
<p>The average sighted user can figure out such a simple form but the screen reader needs a bit more help. Here&#8217;s a sound clip of a screen reader trying to use the <a href="http://last-child.com/tests/YahooKids_SearchBar.mp3">search form on Yahoo! Kids (.mp3)</a>. This was further complicated by the missing alt attribute on the image-based submit button.</p>
<p>I&#8217;ve also had to work with table based forms that need some assistance. The table is marked up with appropriate table headers and scopes, but the individual inputs lack labels due to the UED. </p>
<h3>The simple solution</h3>
<p>There are many ways to hide content via CSS. You want to avoid <em>visibility:hidden</em> and <em>display:none</em>. These will also hide it from the screen reader. You could use <em>text-indent:-1000 em</em>. I prefer using <em>position:absolute; <del title="using top could cause pages to jump. just use left" rel="edited 04-24-2008">top:0;</del> left:-1000em;</em>. This hides the label by pushing it off screen yet the screen reader is still able to use it.</p>
<h4>Updated CSS (updated 4/24/2008)</h4>
<p>Adding a top position to your hidden may cause the page to jump when the item is focused. Only use a negative left position and leave the top position out of the equation.</p>
<h3>Samples</h3>
<p>Let&#8217;s look at the <a href="http://last-child.com/tests/sample-consolidate-form.html">complicated table with hidden inputs</a>.  The table is properly coded with summary and scope. However, the table would still be difficult for a screen reader without form labels.  </p>
<p>Here&#8217;s a sample of the HTML code:<br />
<code lang="HTML"></p>
<td>
<label for="cc3_payment" class="srinfo">Creditcard3 Payment</label></p>
<input id="cc3_payment" name="cc3_payment" size="10" value="0" tabindex="10" maxlength="10" type="text">
</td>
<p></code></p>
<p>Here&#8217;s the CSS for the labels</p>
<p><code lang="CSS"><br />
.srinfo {position:absolute; <del>top:0;</del> left:-1000em;}<br />
</code></p>
<h3>Extending the hidden screen reader concept</h3>
<p>I&#8217;ve written earlier about how Yahoo! Tech used a hidden collection of links to <a href="http://www.last-child.com/make-flash-accessible-to-screen-readers-in-transparent-window-mode/">replicate an inaccessible flash movie</a>. In a nutshell: screen readers cannot see a flash movie that has wmode:transparent. To get around this, we duplicated the flash content and moved it off-screen for screen readers and search engines.  </p>
<p>You could also use this technique for providing information specific to screen reader users, such as:<br />
<code lang="HTML"></p>
<p class="srinfo">Please note, this page uses JavaScript to continually update stock information. Look for the link: "disable stock updates" to turn this feature off</p>
<p></code></p>
<h3>Hold the Presses, this isn&#8217;t perfect!</h3>
<p>You can&#8217;t just throw anything off screen for the screen readers. The earlier Yahoo Tech example took about made 6 links invisible yet they were still accessible to keyboard users. So, remember, when you use the <strong>srinfo</strong> class to hide content for screen readers, keep in mind the impact on keyboard users. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/class-equals-screen-reader-info/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
<enclosure url="http://last-child.com/tests/YahooKids_SearchBar.mp3" length="3399296" type="audio/mpeg" />
		</item>
		<item>
		<title>Image sprites &#8211; flexible and accessible packages</title>
		<link>http://www.last-child.com/image-sprites-flexible-and-accessible-packages/</link>
		<comments>http://www.last-child.com/image-sprites-flexible-and-accessible-packages/#comments</comments>
		<pubDate>Tue, 17 Oct 2006 20:11:11 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Definition List]]></category>
		<category><![CDATA[HTML Elements]]></category>
		<category><![CDATA[Image Replacement]]></category>
		<category><![CDATA[Image Sprites]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[Span]]></category>
		<category><![CDATA[Yahoo!]]></category>

		<guid isPermaLink="false">http://www.last-child.com/image-sprites-flexible-and-accessible-packages/</guid>
		<description><![CDATA[User generated ratings and reviews are an important part of all Yahoo! sites. You can find them on just about every page of Yahoo! Tech.&#160; It was important for us to develop a ratings presentation device that was easy to code, accessible, flexible, and as light-weight as possible. Our final design uses a combination of [...]]]></description>
			<content:encoded><![CDATA[<p> User  generated ratings and reviews are an important part of all Yahoo! sites. You can find them on  just about every page of <a href="http://tech.yahoo.com">Yahoo! Tech</a>.&nbsp; It  was important for us to develop a ratings presentation device that was easy to code,  accessible, flexible, and as light-weight as possible. Our final design  uses a combination of image sprites and negative text-indent to satisfy these requirements.</p>
<p>
Product ratings are represented with 1 to 5 stars. Other sites  have used inline images; repeating a solid or empty version for each of the  five stars. <img src="http://us.i1.yimg.com/us.yimg.com/i/us/sh/karma/ar_star_4half.gif" alt="stars image from Yahoo! Shopping" width="93" height="16" />Other sites, such as Yahoo! Shopping, have used a single inline image representing the number of  stars.&nbsp;  At best, the image will have an alt attribute that descibes the number of stars. However, the content is locked inside the image. This is an easy approach for  coding but isn&rsquo;t the most accessible approach. </p>
<h3>Yahoo! Tech uses the <strong>content first</strong> approach to design</h3>
<p>
Content-first design improves accessibility. This approach places the relevant content in semantic markup. It then uses CSS to transform that content into the visual design. Here is a sample rating from Yahoo! Tech: <strong>Overall:4/5, Quality:5/5, Support: 3/5</strong>. Our CSS transform that simple text into a series of stars and accompanying text. User testing with a screen-reader user led us to remove visual descriptions from the content, i.e.&quot;stars&quot; or &quot;bars&quot;. </p>
<h3>With the content in the page, it was time to look at the visual design. </h3>
<p>Ratings are presented in either an unordered list or definition list. We need to place descriptive text in front of the stars and want the stars to be aligned with each other. These considerations lead to using spans with a combination of CSS rules to hide the text, insert a background image, and absolutely position the ratings to the right side of the list item.  <strong>Let&rsquo;s look at the code.</strong></p>
<h4>The HTML &#8211; span </h4>
<p>
To use  a background image for the stars, we  need a container that can be manipulated with CSS and not include presentational behaviors  of its own. This is why we  use the span, a generic inline container.  We could  use a strong or em, but feel the span offers the best  versatility. You never know when the graphic designer will ask for some text to be bolded or emphasized in the same list item. </p>
<h4>Sample code for a rating</h4>
<p><code lang="HTML"></p>
<ul class="ratingslist">
<li class="stars4">Overall: <span title="Yahoo! users gave the Apple iPod 4 out of 5 stars for Overall Quality">4/5</span></li>
</ul>
<p></code></p>
<p>
The span&rsquo;s title will generate a tooltip when the user places their mouse over the rating (not Internet Explorer). Screen readers&#8217; default settings ignore title attributes on non-form items.</p>
<h4>The CSS</h4>
<p>
Spans are inline elements.&nbsp;  To display background images, we need to make them display block, define  a height, width, and move the text off the screen. To keep them inline with the  text, we are also positioning them absolutely. We could  position them relatively or floated the spans. Position absolute works the best for our pages.The parent list item is positioned  relatively to give the span a contextual anchor. Negative text-indent will hide the rating text.</p>
<p><code lang="CSS"><br />
.ratingslist {list-style-type:none;}<br />
.ratingslist li {position:relative;  padding:3px 5px; }<br />
.ratingslist li span {text-indent:-1000em; width:66px;  display:block; position:absolute;  top:5px; right:20px;}<br />
</code></p>
<h4>Image sprites display the desired number of stars</h4>
<p>
The list item is given a class with a number at the end  (stars8). This will display an image with four out of five red stars. We are using a scale of 0 to 10 to accomodate half stars. To  display other rating variations, we change the modifier, i.e. prostars4,  retstars4, bars4, bigstars4, etc&hellip;</p>
<p>
To simplify the maintenance of the site and  reduce server  requests; Yahoo! Tech also uses image sprites. Sprites are <a href="http://l.yimg.com/tech.yahoo.com/images/20061004202215/bg-ratings.png">single images that include multiple icons</a> with a consistent spacing between them. Use background positioning to display the desired chunk of the image. Each sprite represents the  possible color variations used on the site: red, blue, and green. Minimizing the  color palettes reduces the final image size.  For more  information on sprites, read <a href="http://www.alistapart.com/articles/sprites/">CSS Sprites: Image Slicing&rsquo;s Kiss of Death</a> by Dave Shea. As a further enhancement, alpha transparent png images are  used for most browsers and index-transparent gifs are presented in the Internet  Explorer 6  style sheets.&nbsp;</p>
<p>
Background images are positioned with the set of numbers after &quot;no repeat.&quot; The horizontal positioning is first. Our sprite is vertical, so we are leaving it alone, hence the 0 value. The vertical positiong comes next. If we want to display 2 out of 5 stars, we need to shift the background down to that part of the image (-530px). Here is the CSS for presenting the specific star variant.</p>
<p><code lang="CSS"><br />
/* Ratings images<br />
  ======================================= */<br />
  .stars0 span {background:url(/images/bg-ratings.png)  no-repeat 0 -650px;}<br />
  .stars1 span {background:url(/images/bg-ratings.png)  no-repeat 0 -620px;}<br />
  .stars2 span {background:url(/images/bg-ratings.png)  no-repeat 0 -590px;}<br />
  .stars3 span {background:url(/images/bg-ratings.png)  no-repeat 0 -560px;}<br />
  .stars4 span {background:url(/images/bg-ratings.png)  no-repeat 0 -530px;}<br />
  .stars5 span {background:url(/images/bg-ratings.png)  no-repeat 0 -500px;}<br />
  &hellip; (repeated for each variation of the stars and bars)<br />
</code></p>
<p>
This approach has allowed the Yahoo! Tech engineers  to maintain a consistent presentation  with minimal  markup. For pages that need special tweaks we can easily adjust the positioning  by using descending selectors: </p>
<p><code lang="CSS"><br />
#mytech .ratingslist li span { right:5px;}<br />
</code></p>
<h4>Caveats</h4>
<p>
We&rsquo;ve only found a few small issues with this approach. </p>
<ul >
<li>You cannot count on background images being displayed on the printed page. Our print style sheet removes the text-indent and background images to display &ldquo;Overall: 4/5&rdquo;. </li>
<li>When       someone includes more than 4 products in the comparison table, the text of some rating parameters will begin to overlap the stars. If they were inline images or if we floated the spans, they may drop to the next line. </li>
</ul>
<p>
Yahoo Tech! ratings are another example of creating  accessible and visually dynamic pages by considering the underlying content  structure before attacking the styles. Users of all abilities are presented  with solid information. That&rsquo;s how you can deliver a 5 star page every time.</p>
<p>Related Information</p>
<ul>
<li> <a href="http://www.alistapart.com/articles/sprites/">CSS Sprites: Image Slicing&rsquo;s Kiss of Death</a> by Dave Shea.</li>
<li><a href="/make-flash-accessible-to-screen-readers-in-transparent-window-mode/">Making Flash Accessible to Screen Readers</a></li>
<li><a href="http://rollyo.com/search.html?q=sprites&#038;uid=0&#038;sid=4886">Standardista Search: Sprites</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/image-sprites-flexible-and-accessible-packages/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The big list of fixed stuff in IE7</title>
		<link>http://www.last-child.com/the-big-list-of-fixed-stuff-in-ie7/</link>
		<comments>http://www.last-child.com/the-big-list-of-fixed-stuff-in-ie7/#comments</comments>
		<pubDate>Wed, 23 Aug 2006 20:15:29 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[attribute selector]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS2]]></category>
		<category><![CDATA[HTML Elements]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[position]]></category>

		<guid isPermaLink="false">http://www.last-child.com/the-big-list-of-fixed-stuff-in-ie7/</guid>
		<description><![CDATA[The IE7 blog has a new post of items that have been fixed in the upcoming release of IE7. While not on the list, the problem I found with alpha transparent png sprites has been fixed for the final release. Take a look at the list and think of it as new tools to use. [...]]]></description>
			<content:encoded><![CDATA[<p>The IE7 blog has a new post of items that have been fixed in the upcoming release of IE7. While not on the list, the problem I found with <a href="http://www.last-child.com/ie7-background-sprite-bug-the-saga-continues/">alpha transparent png sprites</a> has been fixed for the final release. </p>
<p>
Take a look at the list and think of it as new tools to use. </p>
<blockquote cite="http://blogs.msdn.com/ie/archive/2006/08/22/712830.aspx">
<h4>Bugs we fixed</h4>
<p>
All bugs on positioniseverything.net except the &#8220;escaping floats&#8221; bug (which is planned for the future)</p>
<ul>
<li>Peekaboo Bug</li>
<li>Internet Explorer and Expanding Box Problem</li>
<li>Quirky Percentages</li>
<li>Line-height bug</li>
<li>Border Chaos</li>
<li>Disappearing List-Background bug</li>
<li>Guillotine Bug</li>
<li>Unscrollable Content bug</li>
<li>Duplicate Characters Bug</li>
<li>IE and Italics</li>
<li>Doubled Float-Margin bug</li>
<li>Duplicate Indent bug</li>
<li>Three pixel text jog</li>
<li>Creeping Text bug</li>
<li>Missing First letter bug</li>
<li>Phantom box bug</li>
</ul>
<p>
Details on some of the other bugs (from sources other than the positioniseverything.net list) that we fixed:</p>
<ul>
<li>Overflow now works correctly! (That means boxes do not automatically grow any more.)</li>
<li>Parser bugs: * html, _property and /**/ comment bug</li>
<li>Select control: CSS style-able and not always on top</li>
<li>Auto-sizing of absolute positioned element with width:auto and right &amp; left (great for 3 column layouts)</li>
<li>Addressed many relative positioning issues</li>
<li>Addressed many absolute positioned issues</li>
<li>% calculations for height/width for abs positioned elements http://channel9.msdn.com/ShowPost.aspx?PostID=191182</li>
<li>&lt;?xml> prolog no longer causes quirks mode</li>
<li>HTML element truly independent of the Body (now gets its own width, height etc.)</li>
<li>1 px dotted borders no longer render as dashed</li>
<li>Bottom margin bug on hover does not collapse margins</li>
<li>Several negative margin issues fixed</li>
<li>Recalc issues including relative positioning and/or negative margins are fixed now</li>
<li>CLSID attribute of &lt;object> tag no longer limited to 128 characters</li>
<li>:first-letter whitespace bug described in http://blogs.msdn.com/ie/archive/2005/09/02/460115.aspx fixed</li>
<li>Descendant selector now works properly for grand children when combined with other selectors</li>
<li>First-line and first-letter now applies when there is no space between word :first-line and opening brace {</li>
<li>Pseudo-classes now are working as expected if selector is excluded</li>
<li>The :link selector works now for anchor tag with href set to bookmark</li>
<li>Addressed !important issues</li>
<li>PositionIsEverything piefecta-rigid.htm now works</li>
<li>List-item whitespace bug fixed</li>
<li>Fixed Absolutely Buggy II</li>
<li>Absolute positioned elements now use always correct containing block for positioning and size information</li>
<li>Nested block elements now respect all overflow declarations (hidden, scroll, etc)</li>
<li>Fixed the opposing offset problem (absolute positioned element whit all four top, bottom left and right are present)</li>
<li>&lt;a> tags nested within LI elements will no longer add extra bottom margin when hover occurs</li>
<li>We no longer lose the image aspect ratio on refresh</li>
<li>Cleaned up our ident parsing according to CSS2.1 rules</li>
<li>Fixed parsing bugs for multi- class selectors and class selectors that are combined with id selectors</li>
<li>And many more</li>
</ul>
<p>
We also extended our existing implementations to comply with W3C specifications:</p>
<ul>
<li>Enable :hover on all elements not just on &lt;a></li>
<li>Background-attachment: fixed works on all elements – so Eric Meyer’s complexspiral demo works</li>
<li>Improved &lt;object> fallback</li>
</ul>
<p>Finally, we added new features from CSS2.1:</p>
<ul>
<li>Min/max width/height support (also for images, which did not work in IE7b2)</li>
<li>Transparent borders</li>
<li> Fixed positioning support</li>
<li>Selectors: first-child, adjacent, attribute, child
<ul>
<li>A couple of CSS 3 attribute selectors: prefix, suffix and substring since we were working already in the code base (also the general sibling selector)</li>
</ul>
</li>
<li>Alpha channel PNG support (Not a CSS feature but too important for designers to not call it out J)</li>
</ul>
<p><cite><a href="http://blogs.msdn.com/ie/archive/2006/08/22/712830.aspx">IE Blog</a></cite>
</p></blockquote>
<p>
IE7 is still not as good as Firefox, Opera, or Safari. However, Microsoft is planning an aggressive updating campaign and hopefully it won&#8217;t be long before we can count on our average user&#8217;s browser supporting advanced CSS styles. It&#8217;s time to stop complaining about IE6 and begin planning how you will use these new tools.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/the-big-list-of-fixed-stuff-in-ie7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IE7 background sprite bug &#8211; the saga continues</title>
		<link>http://www.last-child.com/ie7-background-sprite-bug-the-saga-continues/</link>
		<comments>http://www.last-child.com/ie7-background-sprite-bug-the-saga-continues/#comments</comments>
		<pubDate>Thu, 08 Jun 2006 17:13:39 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[background]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[Image Sprites]]></category>
		<category><![CDATA[position]]></category>

		<guid isPermaLink="false">http://www.last-child.com/ie7-background-sprite-bug-the-saga-continues/</guid>
		<description><![CDATA[I&#8217;ve been able to narrow down my problem with IE7b2 and background sprites. However, I still have not been able to create a stripped down test page that consistently mis-behaves. So my observations, while not scientific, could save you some hours of debugging. Internet Explorer 7beta2 is not treating transparent png background images correctly. It [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been able to narrow down <a href="http://www.last-child.com/ie7-measuring-sprites-from-bottom-up/">my problem with IE7b2 and background sprites</a>. However, I still have not been able to create a stripped down test page that consistently mis-behaves. So my observations, while not scientific, could save you some hours of debugging.</p>
<p>Internet Explorer 7beta2 is not treating transparent png background images correctly. It sees &#8220;background-position: 0 0&#8243; as &#8220;background-position: 0 100%&#8221;. Come to think of it, I have only tried a vertical sprite, this may be the same for a horizontal sprite. </p>
<h3>What&#8217;s the solution? </h3>
<p>You could create a series of rules in your IE7 style sheet to measure your new sprites from the bottom up, instead of top down. But this doesn&#8217;t solve some of the other odd issues with IE7 and transparent png images. I&#8217;ve seen the images load upside down and I&#8217;ve seen the images move when you scroll the page and the image hits the bottom of the browser. I thought I was going crazy or that I had some sort of mutated version. But this pseudo-animation works on other computers. </p>
<p>Our IE6 style sheet replaces our pretty alpha transparent png graphics with a simpler index transparent gif version. We replaced our re-measured rules in the IE7 with this set and it has solved our problems. It would be great to take advantage of IE7&#8242;s ability to use alpha transparent png images, but this bug is just driving me nuts.  I&#8217;ve also been in contact with the IE7 team. They are dedicated to building the best browser possible within their constraints and hopefully this will be figured out before the final launch of IE7. </p>
<p>One other note of advice. Creating alpha transparent png images via the save as command in Photoshop on a Mac gave us the worst results. Those images did some very funky things on the page. Fireworks created better images.</p>
<h3>c&#8217;est fini!</h3>
<p><del>I don&#8217;t know if it is official or not, but I can say that the Microsoft engineers are interested in what developers have to say and have worked on this bug. I believe it has been fixed and will be all good to go with the final release of IE7. I can&#8217;t confirm or deny this, but I am pleased with their response to my initial post and followup.</del><ins>This bug has officially been officially fixed as of Release Candidate 1 and you can use your transparent png sprites without a worry in the world!</ins></p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/ie7-background-sprite-bug-the-saga-continues/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Make Flash accessible to screen readers in transparent window mode</title>
		<link>http://www.last-child.com/make-flash-accessible-to-screen-readers-in-transparent-window-mode/</link>
		<comments>http://www.last-child.com/make-flash-accessible-to-screen-readers-in-transparent-window-mode/#comments</comments>
		<pubDate>Mon, 08 May 2006 21:27:13 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[:absolute]]></category>
		<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Dynamic HTML]]></category>

		<guid isPermaLink="false">http://www.last-child.com/make-flash-accessible-to-screen-readers-in-transparent-window-mode/</guid>
		<description><![CDATA[The detour around flash for accessibility Yahoo! Tech’s home page features a flash-based media space that highlights stories, comparisons, buying guides, blog posts, and more. Making this accessible required a bit of trial and error, but the solution was simple and can be used by sites everywhere. Step 1. Inserting the flash object The site [...]]]></description>
			<content:encoded><![CDATA[<h2>The detour around flash for accessibility</h2>
<p>
<a href="http://tech.yahoo.com">Yahoo! Tech’s</a> home page features a flash-based media space that  highlights stories, comparisons, buying guides, blog posts, and more. Making  this accessible required a bit of trial and error, but the solution was simple  and can be used by sites everywhere.</p>
<h3>Step 1. Inserting the flash object</h3>
<p>
The site uses the <a href="http://www.bobbyvandersluis.com/ufo/">Unobtrusive Flash Object</a> script by Bobby van  der Sluis. This script checks to see if the user has JavaScript enabled and the correct  version of <a href="http://www.adobe.com/products/flash/flashpro/" title="Adobe Flash" rel="homepage" class="zem_slink">Flash</a> in their browser. If so, it inserts the code required to  display the movie. If the user doesn’t  have the requirements, a default set of information is presented. </p>
<p>
This script cures the validation errors caused by the normal  flash insertion code. Theoretically, it would also allow you to provide good,  accessible content to those not using JavaScript and Flash enabled browsers,  i.e. <a href="http://en.wikipedia.org/wiki/Screen_reader" title="Screen reader" rel="wikipedia" class="zem_slink">screen readers</a> and search robots.</p>
<h4>Window Mode Transparency conflict</h4>
<p>
However, we had an issue with the flash movie conflicting with  a DHTML drop down menu. The flash movie wanted to have the highest z-index and  thus sat on top of the menu. To cure this problem, we added the attribute  wmode:transparent. This tells the flash movie: your window mode is transparent, you are not  the boss, go sit in the back and let others take center stage.</p>
<p>
This cured the overlapping issues but negated the  accessibility features that we had hoped for. User testing with a screen reader was  disheartening. Screen readers ignore flash movies with window mode transparent.  They want to do what’s best for the user and ignore the little guy in the back  corner. </p>
<p>
We began searching for answers on the flash and  accessibility forums and couldn’t find a way to get screen readers to read a  flash movie with wmode:transparent. It simply isn’t possible at this time.</p>
<h3>Step 2. Time for a detour</h3>
<p>
The U.F.O. enabled page features a div with default text.  This is where we originally duplicated the content being fed via xml to the  flash movie. Our hope was that the screen readers would ignore the flash and  read the HTML content in this div. When this wasn’t possible, we literally  thought outside the box. </p>
<p>
The U.F.O. script uses <code lang="CSS">visibility:hidden</code> to hide the default  box. We tried using text-indent and negative margins instead, but it still was  not available to the screen reader.</p>
<p>
The default div now has your standard non-optimized warning  text: “<em>For the best experience, please  enable JavasScript and download the latest version of Flash….</em>” </p>
<p>
  <img id="image63" src="http://www.last-child.com/wp-content/uploads/2006/05/ufo-alternate.png" alt="screen with css disabled - both versions viewable"><br />
We then created a new div (id=”alternatecontent”) that  features the content from the flash movie. It is pushed off screen by using absolute  positioning. This hides the duplicated content from the visual design while  providing the content to those without the visual abilities. </p>
<p>
We’re satisfying two audiences with just a little extra  code.  Add the extra div for your screen reader audience (…and  search engines!) when using  wmode:transparent in your Flash movie. You&#8217;ll create valid, visually dynamic, and accessible pages.</p>
<p>
<a id="p62" rel="attachment" href="http://www.last-child.com/wp-content/uploads/2006/05/yui-mediaspace.mp3" title="Yahoo! Tech media space as read by a screen reader">Listen to the Yahoo! Tech media space as read by a screen reader</a> (.mp3)</p>
<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://ajaxian.com/archives/flash-10-and-the-bad-news-for-javascript-interaction">Flash 10 and the bad news for JavaScript interaction</a></li>
<li class="zemanta-article-ul-li"><a href="http://ajaxian.com/archives/swfaddress-20-deep-linking-for-flash-and-ajax">SWFAddress 2.0: Deep linking for Flash and Ajax</a></li>
<li class="zemanta-article-ul-li"><a href="http://news.cnet.com/8301-1009_3-10061358-83.html?part=rss&amp;subj=news">&#8216;Clickjacking&#8217; attack hides behind the mouse</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/make-flash-accessible-to-screen-readers-in-transparent-window-mode/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
<enclosure url="http://www.last-child.com/wp-content/uploads/2006/05/yui-mediaspace.mp3" length="571104" type="audio/mpeg" />
		</item>
		<item>
		<title>IE7 passes the sprite test</title>
		<link>http://www.last-child.com/ie7-passes-the-sprite-test/</link>
		<comments>http://www.last-child.com/ie7-passes-the-sprite-test/#comments</comments>
		<pubDate>Sun, 07 May 2006 17:45:55 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[background]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[Image Sprites]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[Quick Tips]]></category>

		<guid isPermaLink="false">http://www.last-child.com/ie7-passes-the-sprite-test/</guid>
		<description><![CDATA[I came across an issue with Internet Explorer 7 beta displaying the rating stars incorrectly in Yahoo! Tech. After doing some testing, I realized the browser was measuring the sprite image from the bottom up, rather than the top down. This is a significant issue. I had to create a new set of rules in [...]]]></description>
			<content:encoded><![CDATA[<p><img id="image61" src="http://www.last-child.com/wp-content/uploads/2006/05/beegee-sprite-thumb.jpg" alt="beegee sprite thumb" /><br />
I came across an issue with Internet Explorer 7 beta displaying the rating stars incorrectly in <a href="http://tech.yahoo.com">Yahoo! Tech</a>.  After doing some testing, I realized the browser was measuring the sprite image from the bottom up, rather than the top down. This is a significant issue. I had to create a new set of rules in the IE7 style sheet for the new measurements.</p>
<p>I use sprites extensively. I love the way they save server requests and I think they are much easier to maintain. The thought of fixing all of my sprites was enough to send me downstairs for another coffee. But I noticed the only sprites being affected were the ratings. I needed to find what was special about these. The ratings sprites use a span that is absolutely positioned in either an unordered list or definition list. This gives us flexibility for displaying them across the site. </p>
<h3>IE7 Does it Right!</h3>
<p>I created a <a href="http://www.last-child.com/sprite-test-ie7.html">test page for using sprites</a>. I stripped the CSS down to simple list handling, floating, positioning, and sprite.  IE7 handled it perfectly. I even replaced the links with spans and that still didn&#8217;t trip up IE7.  Take a look at the test page , <a href="http://www.last-child.com/sprite-test-ie7.html">IE7 Sprite Test</a>, to see the results. While I&#8217;m still having problems with IE7&#8242;s handling of sprites. I believe it is a unique combination of styles that is causing this issue. I don&#8217;t think the average person will need to worry about this.</p>
<p>When I do figure out what is going on with Yahoo! Tech&#8217;s rating sprites, I&#8217;ll update this blog with the solution. For more information on using sprites, visit Dave Shea&#8217;s article <a href="http://www.alistapart.com/articles/sprites/">CSS Sprites: Image Slicing’s Kiss of Death</a>  on <a href="http://www.alistapart.com">A List Apart</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/ie7-passes-the-sprite-test/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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>Forcing the footer to always be at the bottom of a page</title>
		<link>http://www.last-child.com/forcing-the-footer-to-always-be-at-the-bottom-of-a-page/</link>
		<comments>http://www.last-child.com/forcing-the-footer-to-always-be-at-the-bottom-of-a-page/#comments</comments>
		<pubDate>Sun, 19 Mar 2006 15:43:06 +0000</pubDate>
		<dc:creator>Ted</dc:creator>
				<category><![CDATA[:relative]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS2]]></category>
		<category><![CDATA[Div]]></category>
		<category><![CDATA[margin]]></category>
		<category><![CDATA[min-height]]></category>
		<category><![CDATA[negative margins]]></category>
		<category><![CDATA[position]]></category>

		<guid isPermaLink="false">http://www.last-child.com/forcing-the-footer-to-always-be-at-the-bottom-of-a-page/</guid>
		<description><![CDATA[Cameron Adams (The Man in Blue) has created a method to force a footer to stick to the bottom of a page, regardless of how much content it contains. His approach is based on the work by Craig Erskine (solarDreamStudios). The Setup You have a page that terminates in a sturdy footer, such as this [...]]]></description>
			<content:encoded><![CDATA[<p>Cameron Adams (<a href="http://www.themaninblue.com">The Man in Blue</a>) has created a method to force a footer to stick to the bottom of a page, regardless of how much content it contains. His approach is based on the work by  Craig Erskine (<a href="http://solardreamstudios.com/">solarDreamStudios</a>).</p>
<h3>The Setup</h3>
<p>You have a page that terminates in a sturdy footer, such as this site. You&#8217;d like the footer to be cemented to the bottom of the browser window regardless of the amount of content. How do you position the footer at the bottom on a small page, yet not cause a conflict with long page? It&#8217;s actually more irksome than you would imagine.</p>
<h3>The Solution</h3>
<p>The footer is placed outside the content wrapping div. The html, body, and content div are given height:100%, which pushes the footer off screen. The footer then uses negative margins to sneak back up into the page. For pages with longer content, space is needed in the content div to avoid overlapping on the bottom.</p>
<blockquote><p>Based off the original footerStick, <a href="http://www.themaninblue.com/experiment/footerStickAlt/">footerStickAlt</a> sets up the Web page so that it will span the entire height of the browser window, even if the content is less than the height of the browser window. However, where footerStick then used absolute &#8220;bottom&#8221; positioning to get the footer to appear at the bottom of the screen/content, footerStickAlt positions the footer <em>outside</em> the height of the content, and then applies a negative margin to get it to display inside the browser window.</p>
<p>So, where footerStick&#8217;s code requires you to place the footer inside a containing element, footerStickAlt requires you to place it <em>outside</em> the element:</p></blockquote>
<p><code lang="HTML"><br />
<html><br />
<body></p>
<div id="nonFooter">
</div>
<div id="Footer">
</div>
<p></body><br />
</html><br />
</code></p>
<p>You then need to apply a bit of CSS:</p></blockquote>
<p><code lang="CSS"><br />
html { height: 100%;}<br />
body { height: 100%;}<br />
#nonFooter { position: relative; min-height: 100%;}<br />
* html #nonFooter { height: 100%;}<br />
#Footer { position: relative; margin-top: -7.5em; }<br />
</code></p>
<blockquote><p>&#8230;For the case where the Web page content is larger than the browser window, the footer will be positioned naturally below the content, then brought up by the margin. For this scenario you should provide a bit of space at the bottom of your content which the footer can rise into without covering anything. This can be done with a bit of padding or margin on your content.</p>
<p>The only drawback to footerStickAlt is that you <em>must</em> know the exact height of your footer (whether it be in absolute or relative pixels). However, you have to know this roughly with the original version anyway, in order to make room for the footer at the bottom of the content. It&#8217;s generally a non-issue with footers anyway, as they have limited information and a sparse layout.</p>
<p><cite>Cameron Adams &#8211; <a href="http://www.themaninblue.com/writing/perspective/2005/08/29/">footerStickAlt</a> </cite></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.last-child.com/forcing-the-footer-to-always-be-at-the-bottom-of-a-page/feed/</wfw:commentRss>
		<slash:comments>14</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>
	</channel>
</rss>

