<style type="text/css">
.gallery{
position: relative;
/*Add a height attribute and set to largest image's height to prevent overlaying*/
}
.thumbnail img{
border: 1px solid white;
margin: 0 0px 0px 0;
}
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
border: 0px solid black;
visibility: hidden;
left: -1000px;
top: 14px;
color: black;
text-decoration: none;
font-family: Arial;
}
.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
left: 233px; /*position where enlarged image should offset horizontally */
top: 310px;
z-index: 50;
}

</style>