Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The following changes will solve your problem.</p> <p>This is based on your code. You can tweak it to make it shorter. </p> <p>HTML part:</p> <pre><code>&lt;div class="pic_container"&gt; &lt;div class="leftDiv"&gt; &lt;img src="http://www.image-and-text.com/pictures/whiskey_with_ice.jpg"&gt; &lt;/div&gt;&lt;!-- --&gt;&lt;div class="viewerWrapper"&gt;&lt;div class="viewer"&gt; &lt;img src="http://images.printsplace.co.uk/Content/Images/Products/46576/43569/Image_of_M101_1.jpg" alt="" class="active" /&gt; &lt;img src="http://i.bosity.com/clothes_cache/261/12002348/3480000011312473207_12002348_1_image.jpg" alt="" /&gt; &lt;img src="http://lokeshdhakar.com/projects/lightbox2/images/examples/image-6.jpg" alt="" /&gt; &lt;/div&gt;&lt;/div&gt;&lt;!-- --&gt;&lt;div class="rightDiv"&gt; &lt;img src="http://www.image-and-text.com/pictures/whiskey_with_ice.jpg"&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>CSS Part:</p> <pre><code>.pic_container { display: block; width: 100%; position:relative; } .leftDiv { display:inline-block; width: 25%; position:relative; } .rightDiv { display:inline-block; width: 25%; position:relative; } .viewerWrapper { display:inline-block; width: 50%; position:relative; vertical-align: top; } .viewer { width:100%; } .leftDiv IMG, .rightDiv IMG, .viewer IMG { max-width: 100%; } .viewer IMG { z-index:8; position: absolute; } .viewer IMG.active { z-index:10; } .viewer IMG.last-active { z-index:9; } </code></pre> <p>&nbsp;</p> <p>See it here: <a href="http://jsfiddle.net/FTEan/" rel="nofollow">http://jsfiddle.net/FTEan/</a></p> <p>&nbsp;</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload