Archived topic
Spacing between "element" and the first element on a page
7 replies · Started by Chintan on August 15, 2022
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!
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.
Hi
I did all the changes as you mentioned, but still see the same spacing appear in both cases.
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.
That doesn't seem to work either. The spacing isn't taking "em" in the margins.
GB Container block should take em as margin unit:
https://www.screencast.com/t/BR74RsX8BnLz
Thank you so much, Ying :)
No problem :)