* { padding:0px } #gallery img { border:none; } #gallery_nav { float:left; width:112px; text-align:center; } #gallery_nav a { display:block; height:82px; } #gallery_nav img { width:110px; height:80px; } #gallery_output { float:left; width:600px; overflow:hidden; } #gallery_output img { display:block; margin:0px auto 0 auto; } .on { border:1px solid rgba(92,92,92,1.00); }