<style type="text/css">

/* photo gallery */

.gallerycontainer{
position: relative;
height: auto;
align: center;

/*Add a height attribute and set to largest image's height to prevent overlaying*/
}
.thumbnail img{
border: 1px solid white;
margin: 0 4px 5px 0px;
}

.thumbnail:table /*thumbnail table*/{
text-align: center;
border-collapse: collapse;
align: right;
}

.thumbnail:hover{
background-color: transparent;
}

.thumbnail:hover img{
border: 3px solid blue;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: white;
padding: 0px;
left: -1000px;
border: 1px 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;
top: 20em;
left: 32px; /*position where enlarged image should offset horizontally */
z-index: 10em;
}

.links:table /*Style for table cells that contain links*/{
Border: solid 1 px #00bfff;
padding: 10px;
}

.links /*Style for table cells that contain links*/ {
text-align: center; text-color: #FFF;
}

.links:hover {
border: 3px solid blue;
} 

</style>