• hi,

    I’m using twentytwentytwo-child theme and am trying to remove the top and bottom margins on the Group block with contains the site logo, site title, and site tagline. That Group block has Rows and Columns blocks to handle that stuff, so how I structured it might be part of the problem.

    In the child theme theme.json, I set
    “spacing”: {
    “blockGap”: “0rem”
    }

    But unfortunately, it didn’t remove the top and bottom margins for the top Group block. I read that Group blocks don’t have margins generally.

    I tried applying a class of no_top margin-top: 0px to various blocks in the Group and the Group itself. But no luck.

    Anyone have any suggestions on how to proceed? And if I’ve missed something obvious?

    Thanks

    • This topic was modified 2 years, 10 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter oneearth27

    (@oneearth27)

    Success! It wasn’t margin at all.

    It was padding! Set top and bottom padding to 0px and that did the trick!

Viewing 1 replies (of 1 total)
  • The topic ‘How to get remove top and bottom margins on Group block?’ is closed to new replies.