Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><b>Update:</b> Here try now, ;)</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;script type="text/javascript" src="jquery.js"/&gt;&lt;/script&gt; &lt;style&gt; #home_sec_2 {z-index:20; position:relative; display:inline-block}.hide{display:none;} #home_sec_2 img{outline:0;text-decoration:none; display: inline-block;float:left;} img + .imgOverLay1{overflow:hidden;height:0px; width:314px; background-color:#F01414; float:left; z-index:8000; position: absolute; opacity: 0.5;filter:alpha(opacity=50);-moz-opacity:0.5;-khtml-opacity: 0.5;bottom: 0px; float:left;-webkit-transition:height 0.5s;-moz-transition:height 0.5s;transition:height 0.5s;} img:hover + .imgOverLay1,img + .imgOverLay1:hover{height:70px;} &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="home_sec_2"&gt; &lt;h2&gt;WHATS IN THE MIX&lt;/h2&gt; &lt;img src="img1.png" width="314" height="145" class="c1" alt="LA NORIE"/&gt; &lt;div class="imgOverLay1" id="ov0"&gt;&lt;a href="#"&gt;Here is the First&lt;/a&gt;&lt;/div&gt; &lt;img src="img2.jpg" width="314" height="145" class= "c1" alt="BATTLEFIELD 3" /&gt; &lt;div class="imgOverLay1" id="ov1"&gt;&lt;a href="#"&gt;Here is the Second&lt;/a&gt;&lt;/div&gt; &lt;img src="img1.jpg" width="314" height="145" class="c1" alt= "CALL OF DUTY: MW3" /&gt; &lt;div class="imgOverLay1" id="ov2"&gt;&lt;a href="#"&gt;Here is the Third&lt;/a&gt;&lt;/div&gt; &lt;/div&gt;&lt;/body&gt; &lt;script&gt; window.onload=function(){ $('.imgOverLay1').each(function(){ $(this).css({"left":$(this).prev().position().left}); }); }; &lt;/script&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