Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p> To overlay on each different image being rolled-over, you'll have to make some changes in your HTML and CSS files. In your HTML file search for &lt;div class="image"&gt; and put each &lt;img class="hoverimage"&gt; element inside &lt;div class=""imgpost"&gt;: </p> <p><code></p> <pre><code>&lt;div class="image"&gt; &lt;div class="imgpost"&gt; &lt;img src="images/portfolio_image_1.png" class="captionme" title="I am the only son" alt="Porfolio detail"&gt; &lt;div class="thecaption"&gt;I am the only son&lt;/div&gt; &lt;img class="hoverimage" src="images/portfolio_overlay.png" alt=""&gt; &lt;/div&gt; &lt;div class="imgpost"&gt; &lt;img src="images/portfolio_image_1.png" class="captionme" title="I am the only son" alt="Porfolio detail"&gt; &lt;div class="thecaption"&gt;I am the only son&lt;/div&gt; &lt;img class="hoverimage" src="images/portfolio_overlay.png" alt=""&gt; &lt;/div&gt; &lt;div class="imgpost"&gt; &lt;img src="images/portfolio_image_1.png" class="captionme" title="I am the only son" alt="Porfolio detail"&gt; &lt;div class="thecaption"&gt;I am the only son&lt;/div&gt; &lt;img class="hoverimage" src="images/portfolio_overlay.png" alt=""&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p></code></p> <p>Then in your CSS add/modify the folowing styles: <code></p> <pre><code>.hoverimage { position: absolute; top: 1px; left: 1px; display: none;} .imgpost .hoverimage { border: none; background: none; } .imgpost:hover .hoverimage { display: block; } </code></pre> <p></code></p> <p>Then delete this style: <code></p> <pre><code>.image:hover .hoverimage { display: block; }​ </code></pre> <p></code></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