Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The image zoom's within that list since you assign relative to .thumbnail_img (which within the list) and this makes it becomes the anchor of absolute positioned image, I've slightly adjust your style as below to make the image zoom's outside the list:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;style&gt; body { /* move position: relative from .thumbnail_img to body*/ position: relative; } .thumbnail_img{ /*position: relative;*/ z-index: 0; /*right:420px;*/ } .thumbnail_img:hover { background-color: transparent; z-index: 100; } .thumbnail_img span img { display: inline-block; margin:-13px 17px 2px -13px; } .thumbnail_img span { position: absolute; visibility: hidden; color: black; text-decoration: none; -webkit-transform:scale(0.8); -moz-transform:scale(0.8); -o-transform:scale(0.8); -webkit-transition-duration: 0.5s; -moz-transition-duration: 0.5s; -o-transition-duration: 0.5s; opacity: 0.7; } .thumbnail_img:hover span { /*CSS for enlarged image on hover*/ visibility: visible; background: transparent; top: 250px; left:500px; -webkit-transform:scale(5); -moz-transform:scale(5); -o-transform:scale(5); opacity: 3; height:auto; width:auto; border:0; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="mytest" id="slideshow-carousel" style="padding-top:12px;padding-left: 33px;"&gt; &lt;ul id="carousel" class="jcarousel jcarousel-skin-tango"&gt; &lt;li&gt; &lt;a href="#" rel="p1" class="thumbnail_img"&gt; &lt;img src="image.jpg" width="55" height="60" alt="#"/&gt; &lt;span&gt;&lt;img src="image.jpg" style="height:100px; width:100px" /&gt;&lt;/span&gt; &lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#" rel="p1" class="thumbnail_img"&gt; &lt;img src=" " width="55" height="60" alt="#"/&gt; &lt;span&gt;&lt;img src="" style="height:100px; width:100px" /&gt;&lt;/span&gt; &lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

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