A gap will appear between the images if there are line breaks in the code, remove them:
HTML Code:
<a class="thumbnail" href="#thumb1"><img src="img1.jpg" width="20px" height="20px" border="0" /><span><img src="img1.jpg" /><br />text</span></a><a class="thumbnail" href="#thumb2"><img src="img2.jpg" width="20px" height="20px" border="0" /><span><img src="img2.jpg" /><br />text</span></a>
The href is meaningless, it probably would be better to use:
Code:
href="javascript:void(0);"
That way no page reload will occur onclick.
If you want some of the larger images going one way, and some going the other, you would need an additional class with a different left coordinate:
Code:
.thumbnail:hover span.lefty{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 0;
left: -160px; /*position where enlarged image should offset horizontally */
}
Add this class to the spans that you want further to the left:
Code:
<a class="thumbnail" href="javascript:void(0);"><img src="media/ocean_thumb.jpg" width="100px" height="66px" border="0" /><span class="lefty"><img src="media/ocean.jpg" /><br />So real, it's unreal. Or is it?</span></a>
Bookmarks