ul.thumb { float: left; list-style: none; margin: 0; padding: 10px; width: 450px; } ul.thumb li { margin: 0; padding: 5px; float: left; position: relative; width: 125px; height: 125px; } ul.thumb li img { width: 100px; height: 100px; -ms-interpolation-mode: bicubic; border: 1px solid #ddd; padding: 5px; background: #f0f0f0; position: absolute; left: 0; top: 0; } ul.thumb li img.hover { background:url(http://4.bp.blogspot.com/_p4Te9Li52fs/So9a2fSh2jI/AAAAAAAAAAc/VX0mAW1oYHc/thumb_bg.png) no-repeat center center; border: none; }