Site logo

Archived topic

Gallery Block Image Spacing CSS

7 replies · Started by Paul on March 3, 2023

Viewing posts 1–8 of 8

Hi

I would like to increase the space between the images in my galleries by a few px to give the images some breathing room.
I input wp-block-gallery in the Additional CSS class(es) box and then added

.wp-block-gallery {
    margin-bottom: 4px !important;
    margin-right: 4px !important;
}

in the Additional CSS section.

I have no cache plugins installed yet or a CND and I cleared the browser before reloading the page and there is no change at all to the page.

Hi there,

can i see the gallery on your site ?

Hi David
The site is not live yet.

Hey Paul,

Any chance you can start a staging site so we can see the issue?
Or we can revisit the issue once the site is live.

Thanks.

Not for a few months.

So your asking to see the live site means that you do not see any problem with what I have inputted so far, correct?

That is correct.

The only way to debug CSS issues is to view the live site with browser inspector tool.

Okay thanks, if I have not solved it by the time it goes live I will send you guys a link to the site.

Sounds good :)

I'll leave this topic open. Just comment here again when you are ready.

This archived topic is closed to new replies.