#sp-player-gallery-2118 { margin: auto; } #sp-player-gallery-2118 .gallery-item { float: left; margin-top: 10px; text-align: center; width: 33%; } #sp-player-gallery-2118 img { border: 2px solid #cfcfcf; } #sp-player-gallery-2118 .gallery-caption { margin-left: 0; } /* see gallery_shortcode() in wp-includes/media.php */