[Resolved] Spacing between “element” and the first element on a page

Home Forums Support [Resolved] Spacing between “element” and the first element on a page

Home Forums Support Spacing between “element” and the first element on a page

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2313115
    Chintan

    Hi

    I am implementing a global box at the top of my articles with a message using “Elements.” I have tried to implement two different pages on two different types of conditions. And in both cases, the spacing at the top is way too much. Is there a way I can manage the spacing better? Thank you!

    #2313266
    David
    Staff
    Customer Support

    Hi there,

    the text inside the container, swap the block for a GB Headline block, you can then:

    1. set the HTML Element to a P tag instead of the default H2
    2. with the block selected go to Spacing and set the Bottom Margin to 0

    Likewise you can adjust the Spacing top and bottom margin on the Container block.

    #2313552
    Chintan

    Hi

    I did all the changes as you mentioned, but still see the same spacing appear in both cases.

    #2313670
    Ying
    Staff
    Customer Support

    There’s a 2em top margin added to the content by default:
    https://www.screencast.com/t/9jt2rZeiR

    The normal margin added to the paragraph is 1.2em, you can offset the 0.8em by adding -0.8em as the element (Note:…) container’s bottom margin.

    #2313743
    Chintan

    That doesn’t seem to work either. The spacing isn’t taking “em” in the margins.

    #2313792
    Ying
    Staff
    Customer Support

    GB Container block should take em as margin unit:
    https://www.screencast.com/t/BR74RsX8BnLz

    #2314120
    Chintan

    Thank you so much, Ying ๐Ÿ™‚

    #2314772
    Ying
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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