[Resolved] Default margin bottom in headers and paragraphs

Home Forums Support [Resolved] Default margin bottom in headers and paragraphs

Home Forums Support Default margin bottom in headers and paragraphs

  • This topic has 5 replies, 2 voices, and was last updated 2 years ago by Ying.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2172962
    sirlouen

    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.

    #2172966
    Ying
    Staff
    Customer Support

    Hi there,

    You can add this CSS to override it:

    h2 {
        margin-bottom: 0;
    }
    #2172968
    sirlouen

    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.

    #2172971
    Ying
    Staff
    Customer Support

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

    #2172985
    sirlouen

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

    #2172992
    Ying
    Staff
    Customer Support

    Great! 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.