Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Alright I have a very universal solution for you that is lean and mean on the scripting :p</p> <p>You can add an id to each one without changing the jQuery if they are different sizes and such.</p> <p>This can be used with any element as long as you change the class it is selecting.</p> <p><strong>HTML</strong></p> <pre><code>&lt;div class="imageSlide"&gt; &lt;span class="hidden"&gt;I'm a hidden image! :D&lt;/span&gt; &lt;/div&gt; &lt;div class="imageSlide"&gt; &lt;span class="hidden"&gt;I'm a hidden image! :D&lt;/span&gt; &lt;/div&gt; &lt;div class="imageSlide"&gt; &lt;span class="hidden"&gt;I'm a hidden image! :D&lt;/span&gt; &lt;/div&gt; &lt;div class="imageSlide"&gt; &lt;span class="hidden"&gt;I'm a hidden image! :D&lt;/span&gt; &lt;/div&gt; </code></pre> <p><strong>jQuery</strong></p> <pre><code>$('.imageSlide').on('click', function() { $(this).children().stop(true).slideToggle('1000'); }); </code></pre> <p><strong>CSS</strong></p> <pre><code>.imageSlide { width: 200px; height: 200px; background: mediumSeaGreen; float: left; margin-left: 10px; position: relative; } .imageSlide &gt; span { display: none; position: absolute; bottom: 0; } </code></pre> <p><a href="http://jsfiddle.net/Josh_Powell/fhadM/7/" rel="nofollow">jsfiddle to above code</a></p> <p><strong>JSfiddle with exact needs(I hope)</strong></p> <p><strong>CSS</strong></p> <pre><code>#img1 { background: url(http://remowebdesign.co.uk/wp-content/uploads/2013/10/web-design.png); margin-bottom: 1px; width: 750px; height: 75px; border: 1px solid #000; border-radius: 5px; } #img2 { background: url(http://remowebdesign.co.uk/wp-content/uploads/2013/10/seo.png); margin-bottom: 1px; width: 750px; height: 75px; border: 1px solid #000; border-radius: 5px; } #img3 { background: url(http://remowebdesign.co.uk/wp-content/uploads/2013/10/mobo.png); margin-bottom: 1px; width: 750px; height: 75px; border: 1px solid #000; border-radius: 5px; } #img4 { background: url(http://remowebdesign.co.uk/wp-content/uploads/2013/10/graphic-design.png); margin-bottom: 1px; width: 750px; height: 75px; border: 1px solid #000; border-radius: 5px; } .info-div { position: relative; bottom: 0; width: 980px; padding: 10px; border: 1px dotted #CCC; background: #DFE9E7; margin: 30px 0; border-radius: 10px; display: none; } </code></pre> <p><a href="http://jsfiddle.net/Josh_Powell/fhadM/6/" rel="nofollow">jsfiddle for OP's needs</a> (Newest link)</p> <p><a href="http://jpowell43.mydevryportfolio.com/CleanPortfolio/index.html" rel="nofollow">Another variation I used on one of my portfolios.</a></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