Center Images in default WP gallery

Hey there,

how can I center images using the default wordpress gallery style without jetpack? They should have some padding around them make it look nice and clean. All pictures and captions of the gallery are left aligned. Is there a way to use some shortcode or do I need to style the default gallery in the stylesheet?


Thanks in advance

The pinbin gallery look is exactly what I want:

Is there a way to get this exact design in the sparkling theme when using wordpress galleries?
And is there a way to make this design responsive? e.g. the images scale down when viewing on a mobile device.


Hi @chjuettner,

I hope you are well today and thank you for your question.

I visited your site and it seems you have already applied padding around gallery images except bottom of the image. To apply padding at the bottom of the image try adding the following CSS code in the Custom CSS option of your theme on the below path.

Admin Area -> Apperance -> Theme Options -> Other -> Custom CSS

.gallery {
  margin-bottom: 30px;

To make the gallery images responsive try using the following CSS code.

@media screen and (max-width: 600px) {

.gallery {
  max-width: 48% !important;
  clear: none !important;


Best Regards,