﻿<style type="text/css">
.gallerycontainer{
position: relative;
/*Add a height attribute and set to largest image's height to prevent overlaying*/
}
.thumbnail img{
border: 0px solid white;
margin: 5px 5px 5px 5px;
}
.thumbnail:hover{
background-color: transparent;
}
.thumbnail:hover img{
border: 1px green;
}
.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: #333;
padding: 1px;
left: -1000px;
border: 0px gray;
visibility: hidden;
color: white;
text-decoration: none
}
.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}
.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible; 
top: 30%;
left: 65%;/*position where enlarged image should offset horizontally */
z-index: 50;
}
.gallery img{
border: 0px solid white;
margin: 5px 5px 5px 5px;
}
.gallery:hover{
background-color: transparent;
}
.gallery:hover img{
border: 1px green;
}
.gallery span{ /*CSS for enlarged image*/
position: absolute;
background-color:  #333333;
padding: 1px;
left: -1000px;
border: 0px gray;
visibility: hidden;
color: white;
text-decoration: none
}
.gallery span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}
.gallery:hover span{ /*CSS for enlarged image*/
visibility: visible; 
top: auto;
left: auto px; /*position where enlarged image should offset horizontally */
z-index: 50;
}
</style>