table.gallery_images{ td{ width:150px; height:160px; text-align:center; border:0px; } img{ max-width:140px; max-height:140px; -webkit-box-shadow: 3px 3px 5px rgba(50, 50, 50, 0.32); -moz-box-shadow: 2px 2px 5px rgba(50, 50, 50, 0.32); box-shadow: 2px 2px 5px rgba(50, 50, 50, 0.32); &:hover{ max-width:150px; max-height:150px; } } }