<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Workin' on it. &#187; css</title>
	<atom:link href="http://jameshalberg.wordpress.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://jameshalberg.wordpress.com</link>
	<description></description>
	<lastBuildDate>Sat, 19 Nov 2011 14:15:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jameshalberg.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Workin' on it. &#187; css</title>
		<link>http://jameshalberg.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jameshalberg.wordpress.com/osd.xml" title="Workin&#039; on it." />
	<atom:link rel='hub' href='http://jameshalberg.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Absolute-ly</title>
		<link>http://jameshalberg.wordpress.com/2007/10/28/absolute-ly/</link>
		<comments>http://jameshalberg.wordpress.com/2007/10/28/absolute-ly/#comments</comments>
		<pubDate>Mon, 29 Oct 2007 05:24:11 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[absolute positioning]]></category>
		<category><![CDATA[cross browser]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://jameshalberg.wordpress.com/2007/10/28/absolute-ly/</guid>
		<description><![CDATA[Providing cross-browser support (for simple UIs) is much nicer than it used to be but the occasional hiccup can certainly still be expected. In the last few months I&#8217;ve implemented a couple of components that needed to popup &#8220;on top &#8230; <a href="http://jameshalberg.wordpress.com/2007/10/28/absolute-ly/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshalberg.wordpress.com&amp;blog=160606&amp;post=82&amp;subd=jameshalberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Providing cross-browser support (for simple UIs) is much nicer than it used to be but the occasional hiccup can certainly still be expected.</p>
<p><a title="action-bar.png" href="http://jameshalberg.files.wordpress.com/2007/10/action-bar.png"></a></p>
<p style="text-align:center;"><a title="action-bar.png" href="http://jameshalberg.files.wordpress.com/2007/10/action-bar.png"><img src="http://jameshalberg.files.wordpress.com/2007/10/action-bar.png?w=500" alt="action-bar.png" /></a></p>
<p>In the last few months I&#8217;ve implemented a couple of components that needed to popup &#8220;on top of&#8221; what was already displayed.  The only real gotcha seems to be with how IE deals with (or doesn&#8217;t deal with) the mix of absolute positioning, z-index, and how elements are nested.</p>
<p>The trick is basically that IE doesn&#8217;t like your hidden widget (which would be &#8216;position: absolute&#8217;) to be nested inside the element with &#8216;position: relative&#8217;&#8230; it&#8217;s not a huge fan of them being direct neighbors either.  What I&#8217;ve found to do the trick is adding a seemingly unnecessary span into the mix.  By following this pattern:</p>
<p>.<br />
<code>&lt;div style="position: relative; z-index: 1"&gt;Some stuff&lt;/div&gt;</code></p>
<p><code>&lt;span&gt;</code></p>
<p><code>&lt;div id="other_guy" style="background-color: red; position: absolute; z-index: 2; display: none;"&gt;I'm on top&lt;/div&gt;</code></p>
<p><code>&lt;/span&gt;</code></p>
<p><code>&lt;div&gt;Passersby where amazed by the amount of blood.&lt;/div&gt;</code><br />
Of course, all of this (maybe) goes out the window when you&#8217;re not trying to hide the absolutely positioned div in the first place.  There, I&#8217;ve actually had success with the nesting, but who really needs something that looks like that?</p>
<p>It&#8217;s simple compared to some other solutions that I&#8217;ve seen and (at least in my cases) has done the job for Firefox and the last couple of IE versions.</p>
<p><a title="calendar.png" href="http://jameshalberg.files.wordpress.com/2007/10/calendar.png"></a></p>
<p style="text-align:center;"><a title="calendar.png" href="http://jameshalberg.files.wordpress.com/2007/10/calendar.png"><img src="http://jameshalberg.files.wordpress.com/2007/10/calendar.png?w=500" alt="calendar.png" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jameshalberg.wordpress.com/82/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jameshalberg.wordpress.com/82/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jameshalberg.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jameshalberg.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jameshalberg.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jameshalberg.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jameshalberg.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jameshalberg.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jameshalberg.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jameshalberg.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jameshalberg.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jameshalberg.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jameshalberg.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jameshalberg.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jameshalberg.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jameshalberg.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jameshalberg.wordpress.com&amp;blog=160606&amp;post=82&amp;subd=jameshalberg&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jameshalberg.wordpress.com/2007/10/28/absolute-ly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">jameshalberg</media:title>
		</media:content>

		<media:content url="http://jameshalberg.files.wordpress.com/2007/10/action-bar.png" medium="image">
			<media:title type="html">action-bar.png</media:title>
		</media:content>

		<media:content url="http://jameshalberg.files.wordpress.com/2007/10/calendar.png" medium="image">
			<media:title type="html">calendar.png</media:title>
		</media:content>
	</item>
	</channel>
</rss>
