I have built a simple thumbnail gallery using HTML and CSS with the purpose of inserting this into an auction listing. The code seems to work fine, but I know it is sloppy and most definitely improper syntax as I have DIV's inside of SPAN's. I know I am close, but what would the proper implementation be?
HTML
<div class="listing-content">
<div class="container">
<div class="gallery-container">
<div class="big-pic-box">
<img class="default" src="http://placehold.it/400" alt="" />
</div>
<div class="thumb-set">
<ul >
<li><a href="#x"><img class="small-thumb" src="http://i76.photobucket.com/albums/j39/christopherepearson1/listings%20500-600/0529/0529-01-m_zps3e6ef52c.jpg" alt=""><span><div class="testing"><img class="big-pic" src="http://i76.photobucket.com/albums/j39/christopherepearson1/listings%20500-600/0529/0529-01-m_zps3e6ef52c.jpg" alt=""></div></span></a></li>
<li><a href="#x"><img class="small-thumb" src="http://i76.photobucket.com/albums/j39/christopherepearson1/listings%20500-600/0529/0529-02-m_zps96e3dcab.jpg" alt=""><span><div class="testing"><img class="big-pic" src="http://i76.photobucket.com/albums/j39/christopherepearson1/listings%20500-600/0529/0529-02-m_zps96e3dcab.jpg" alt=""></div></span></a></li>
<li><a href="#x"><img class="small-thumb" src="http://i76.photobucket.com/albums/j39/christopherepearson1/listings%20500-600/0529/0529-03-m_zps8bb91beb.jpg" alt=""><span><div class="testing"><img class="big-pic" src="http://i76.photobucket.com/albums/j39/christopherepearson1/listings%20500-600/0529/0529-03-m_zps8bb91beb.jpg" alt=""></div></span></a></li>
</ul>
</div>
</div>
CSS
.listing-template .listing-content .gallery-container {
height: 600px;
width:420px;
border: 1px solid #D7E3E9;
float:left;
}
.listing-template .listing-content .gallery-container .big-pic-box {
height: 404px;
width:404px;
position:relative;
left:5px;
top:5px;
background-color:#2B596F;
border: 1px solid #D7E3E9;
}
.listing-template .listing-content .gallery-container .default {
position:relative;
left:0px;
top:0px;
border:1px solid #D7E3E9;
opacity: 0.25;
z-index:0;
max-height: 402px;
max-width: 402px;
}
.listing-template .listing-content .gallery-container .thumb-set {
position:relative;
height:150px;
width:404px;
left:5px;
top:30px;
/*background-color:#2B596F;
border: 1px solid #D7E3E9;*/
}
.listing-template .listing-content .gallery-container .thumb-set ul {
list-style:none;
padding:5px;
margin:0;
float:left;
}
.listing-template .listing-content .gallery-container .thumb-set li {
display:inline; width:65px; height:65px; float:left; padding-left:5px;
}
.listing-template .listing-content .gallery-container .thumb-set li a {
display:block; width:55px; height:55px; text-decoration:none; padding:0px; border:1px solid #fff;
}
.listing-template .listing-content .gallery-container .thumb-set li a .small-thumb {
width:53px; height:53px; border:0;
}
.listing-template .listing-content .gallery-container .thumb-set li a .big-pic {
max-height: 400px;
max-width: 400px;
}
.listing-template .listing-content .gallery-container .thumb-set li a:hover,
.listing-template .listing-content .gallery-container .thumb-set li a:active,
.listing-template .listing-content .gallery-container .thumb-set li a:focus {
white-space:normal;
border-color:#2B596F;
outline:0;
}
.listing-template .listing-content .gallery-container .thumb-set li a span {
position:absolute; left:-9999px; display:block; width:400px; height:400px; background:#2B596F;
}
.listing-template .listing-content .gallery-container .thumb-set li a span .testing {display:block; width:400px; height:400px; text-align:center; display:table-cell; vertical-align:middle;
}
.listing-template .listing-content .gallery-container .thumb-set li a:hover span {
position:absolute; left:2px; top:-427px; z-index:100;
}
.listing-template .listing-content .gallery-container .thumb-set li a:active span,
.listing-template .listing-content .gallery-container .thumb-set li a:focus span {
position:absolute; left:2px; top:-427px;
}
The entire file can be found in my Github here.