How to get a rollover enlarged image to appear to the left of thumbnail. ccs/html?

Matt

New member
the enlarged image shows to the left of the thumbnail, but this makes photos appear half off the page on my site. I need the full size image to appear to the left of thumbnail. Help me please im new and i found this code at dynamic drive. Whenever i use the left: of right: in ccs it makes all the enlarged images appear in same spot.
here is ccs:
<style type="text/css">

/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */

.thumbnail{
position: relative;
z-index: 0;
}

.thumbnail:hover{
background-color: transparent;
z-index: 50;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 5px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}

.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}

.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
}

</style>

Here is html for 3 pictures:


<a class="thumbnail" href="images/campphotos/dave2009-11.jpg"><img src="images/campphotos/dave2009-12.jpg" width="117px" height="74px" border="0" /> <span><img src="images/campphotos/dave2009-12.jpg" width="400px" height="250px" border="0"/><br />Dave Mathews 2009. Food Services Tent.</span></a>

<a class="thumbnail" href="images/campphotos/dave2009-12.jpg"><img src="images/campphotos/dave2009-12.jpg" width="117px" height="74px" border="0" /> <span><img src="images/campphotos/dave2009-12.jpg" width="400px" height="250px" border="0"/><br />Dave Mathews 2009. Food Services Tent.</span></a>

<a class="thumbnail" href="images/campphotos/dave2009-13.jpg"><img src="images/campphotos/dave2009-12.jpg" width="117px" height="74px" border="0" /> <span><img src="images/campphotos/dave2009-12.jpg" width="400px" height="250px" border="0"/><br />Dave Mathews 2009</span></a>
 
Back
Top