 <p>Possibly add three divs inside your first. each with their own .png?</p> <pre><code>&lt;div&gt; &lt;div id="blue" style="z-index: 1;"&gt;&lt;img src="blue.png"&gt;&lt;/div&gt; &lt;div id="yellow"style="z-index: 2;"&gt;&lt;img src="yellow.png"&gt;&lt;/div&gt; &lt;div id="red" style="z-index: 1;"&gt;&lt;img src="red.png"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre>