I am using this tutorial for image hover effect: http://webdesignandsuch.com/create-overlay-on-image-hover-jquery-css3/
Last overlay is still always in line while image thumb is already in another line.
Here is screenshot: https://i.stack.imgur.com/IUumO.jpg Every thumb looks like this:
<a href="image.jpg">
<span class="overlay"></span> <!-- this is position:absolute -->
<img src="thumb.jpg">
</a>
Thank you for your help.
Check this: http://jsfiddle.net/XSgq4/
CSS
Or a span version: http://jsfiddle.net/XSgq4/1/