Site logo

Archived topic

How to remove margin between groups?

3 replies · Started by Michael on July 1, 2021

Viewing posts 1–4 of 4

Dear GeneratePress Team,

in Gutenberg, when adding two "Group" blocks to a page, setting both to "full width" and assigning a background color to each of the groups, then there's a white gap (margin) visible between the two groups. It's visible at the frontend only. Do you have any ideas how to remove the gap?

Thank you,
Michael.

Hi Michael,

The Gutenberg editor and the Group block are handled by WordPress, GP has no control over it.

But you can give this CSS a try:

body .entry-content > [class*="wp-block-"]:not(:last-child) {
    margin-bottom: 0;
}

Hi Ying,

Thanks for your help. The css fixed it. One thing that's odd is that those gaps were visible in GP only. The default 2021 theme did not show them, so this could be an unwanted side effect (bug).

I just tested and you are actually right, it is a GP issue.

I’m truly sorry for the incorrect information.

I believe it’ll be fixed in the next update :)

This archived topic is closed to new replies.