Center Gallery

When I post just a photo it is centered on the page but when I post a gallery it is not, Is there a way to center the galleries too.

Hi @troytemplin,

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

Could you please share me the page URL from your site where it is displaying so that i can help you to centre it?

Kind Regards,
Movin

http://troytemplin.com/2016/10/18/tapia-chili-night-ride-2016/
This is my most recent post and a good example. I use a gallery for the single photos as well as I like the way they display if you select them better than the single image add function.
Cheers

You can try making it centre aligned by adding the following CSS code in the Custom CSS option of your theme on the below path.

Admin Area -> Appearance -> Customize -> Activello Options -> Other -> Custom CSS


.gallery {
    margin: 0 auto 20px;
    display: table !important;
}

Looks like that has worked for all the galleries that are a single image or two wide but the galleries that I have that are three wide don’t seem to be affected.
Thanks ill have to remember to only use the two wide unless you can think of another magical code add-in.
Thanks a ton.

That seems to have fixed the galleries with a single photo and two wide but the ones that are three wide are still not affected. Should I just remember to always use two wide?
Cheers

Could you please also try using below CSS code?

.gallery {
    max-width: 910px;
}

perfect, thank you so much that worked.

You are most welcome here :slight_smile:

Could you please share me the page URL from your site where it is displaying the galleries that you have three wide images so that i can help you to centre it?