<style type="text/css">
.gallerycontainer{
position: relative;
/*Add a height attribute and set to largest image's height to prevent overlaying*/
}
.thumbnail img{
border: 2px solid #000;
margin: 0 0px 0px 0;
}
.thumbnail:hover{
background-color: transparent;
}
.thumbnail:hover img{
border: 2px solid #000;
}
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: #070;
padding: 1px;
left: -1000px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}
.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 0px;
}
.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;

left: 200px; /*position where enlarged image should offset horizontally */
z-index: 50;
border:0px;
}
.allthumbnail img{
border: 2px solid #000;
margin: 0 0 0 0;
}
.allthumbnail:hover{
background-color: transparent;
}
.allthumbnail:hover img{
border: 2px solid #000;
}
.allthumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: #070;
padding: 0px;
left: -1000px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}
.allthumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 1px;
}
.allthumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
top: 0%;
left: 420px; /*position where enlarged image should offset horizontally */
z-index: 50;
border:0px;
}
</style>
