Site logo

Archived topic

Default margin bottom in headers and paragraphs

5 replies · Started by sirlouen on March 30, 2022

Viewing posts 1–6 of 6

I've noticed that Generatepress puts a 20px by default in all headers and paragraphs
How may I remove this without css?

In case it helps, I'm using containers and Generateblocks for every place I put a header or a paragraph. Maybe irrelevant but just in case.

Hi there,

You can add this CSS to override it:

h2 {
    margin-bottom: 0;
}

I'm working with people with 0% knowledge of CSS

This margin-bottom is legit, but sometimes it's a little weird. For example, if someone creates a container for a rectangle category with a heading straight in the middle because the margin induces an slightly uncentered result.

Obviously, I could put a class in that specific H2 and set that margin-bottom: 0 to that class

But I was thinking if there was an option to manage this from the control panel for those no code people.

If you are using Headline block from GB, you should be able to set margin for each individual headline to override the theme setting.

Thanks I did not know there was a Headline block in GBlocks. This is exactly I was looking for

Great! :)

This archived topic is closed to new replies.