
    
.item {
    width:150px;
    height:150px;  
    border:1px solid #222; 
    margin:5px 5px 5px 0;
    overflow:hidden;       /* required to hide the image after resized */
    position:relative;    /* for child absolute position */
    float:left;    /* display div in line */
    display: block;
}
 
.item .caption {
    width:150px;
    height:150px;
    background:#000;
    color:#fff;
    font-weight:bold;
    position:absolute; /* fix it at the bottom */
    left:0;
    display:none;   /* hide it by default */
 
    /* opacity setting */
    filter:alpha(opacity=80);    /* ie  */
    -moz-opacity:0.8;    /* old mozilla browser like netscape  */
    -khtml-opacity: 0.8;    /* for really really old safari */ 
    opacity: 0.8;    /* css standard, currently it works in most modern browsers like firefox,  */
 
}
 
.item a div.caption span.name {
    text-decoration:none;
    color:#0cc7dd;
    font-size:16px;
     
    /* add spacing and make the whole row clickable*/
    padding:5px;
    display:block;
}
 
.item div.caption span.bottom {
    padding:5px;   
    margin:0;
    font-size:10px;
    position: absolute; bottom: 0; left: 0; 
}
 
.item a img {
    /* allow javascript moves the img position*/
    position:absolute;
    vertical-align:bottom;
    height:150px;
    width:150px;
}
