#gallery-1 { width: 500px; margin: 0 auto } .gallery-item { width: 150px !important; height: 150px; border: 1px solid #eee; padding: 5px } #gallery-1 img { border: 0 !important }