<style type="text/css">

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

.gallerycontainer{
position: relative;
background-color: #000000;
height: 500px;
/*Add a height attribute and set to largest image's height to prevent overlaying*/
}

.thumbnail img{
border: 1px solid #00008b;
margin: 0 5px 5px 0;
}

.thumbnail:hover{
background-color: #ffffff;
}

.thumbnail:hover img{
border: 1px solid #000099;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: #ffffff;
padding: 5px;
left: -1000px;
border: 1px solid #000099;
visibility: hidden;
color: #000099;
text-decoration: none;
}

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

.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
top: 370px;
left: 275px; /*position where enlarged image should offset horizontally */
z-index: 150;
}

</style>

