<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>CodeGuru Forums - Scripting - Client Side</title>
		<link>http://forums.codeguru.com/</link>
		<description>Discuss client-side scripting issues. Client-side scripting such as JavaScript, JScript, and VBScript as well as technologies such as HTML and stylesheets.</description>
		<language>en</language>
		<lastBuildDate>Thu, 20 Jun 2013 05:24:52 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://forums.codeguru.com/images/misc/rss.png</url>
			<title>CodeGuru Forums - Scripting - Client Side</title>
			<link>http://forums.codeguru.com/</link>
		</image>
		<item>
			<title><![CDATA[CSS [RESOLVED] Positioning of images one on top of another]]></title>
			<link>http://forums.codeguru.com/showthread.php?537723-RESOLVED-Positioning-of-images-one-on-top-of-another&amp;goto=newpost</link>
			<pubDate>Tue, 11 Jun 2013 16:47:38 GMT</pubDate>
			<description><![CDATA[I'm looking for some help with image positioning because I don't think this is the right way to do it.
I have a parent DIV, absolutely positioned, that is later moved by jQuery to another part of the page. Inside this DIV I want multiple transparent PNGs, overlaid one on top of another, to give an onion skin effect. I have it working but it doesn't look right because I'm doing a lot of silly offset positioning (needless to say CSS is not my bag).
Here's what I have:

Code:
---------
<div id='summary' class='ui-corner-all ui-widget'>
	<div class='ui-state-default'>Summary</div>
	<a style='text-align:left;'id='txtSummary'></a>
	<br/>
	<a>Cost<span id='txtEstCost' class='ui-state-active'></span></a><br/><br/>
	<img style="z-index:10;"   id="img1" src="images/image1.png" />
	<img style="position: relative; top: -123px; z-index:11;" id="img2"   src="images/image2.png" />
	<img style="position: relative; top: -248px; left: -2px; z-index:12;" id="img3"   src="images/img3.png" />
</div>
---------
How do I place one image on top of another without the position changing, so that the origin of each is from the same location?
Regards,
Gary]]></description>
			<content:encoded><![CDATA[<div>I'm looking for some help with image positioning because I don't think this is the right way to do it.<br />
I have a parent DIV, absolutely positioned, that is later moved by jQuery to another part of the page. Inside this DIV I want multiple transparent PNGs, overlaid one on top of another, to give an onion skin effect. I have it working but it doesn't look right because I'm doing a lot of silly offset positioning (needless to say CSS is not my bag).<br />
Here's what I have:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;div id='summary' class='ui-corner-all ui-widget'&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class='ui-state-default'&gt;Summary&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;a style='text-align:left;'id='txtSummary'&gt;&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;a&gt;Cost&lt;span id='txtEstCost' class='ui-state-active'&gt;&lt;/span&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;img style=&quot;z-index:10;&quot;&nbsp;  id=&quot;img1&quot; src=&quot;images/image1.png&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;img style=&quot;position: relative; top: -123px; z-index:11;&quot; id=&quot;img2&quot;&nbsp;  src=&quot;images/image2.png&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;img style=&quot;position: relative; top: -248px; left: -2px; z-index:12;&quot; id=&quot;img3&quot;&nbsp;  src=&quot;images/img3.png&quot; /&gt;<br />
&lt;/div&gt;</code><hr />
</div>How do I place one image on top of another without the position changing, so that the origin of each is from the same location?<br />
Regards,<br />
Gary</div>

]]></content:encoded>
			<category domain="http://forums.codeguru.com/forumdisplay.php?8-Scripting-Client-Side">Scripting - Client Side</category>
			<dc:creator>the_cat</dc:creator>
			<guid isPermaLink="true">http://forums.codeguru.com/showthread.php?537723-RESOLVED-Positioning-of-images-one-on-top-of-another</guid>
		</item>
	</channel>
</rss>
