Archived topic
How to get rid of the default right and bottom padding?
3 replies · Started by Jin on October 4, 2022
I'm trying to create a text within a box. Basically a "Paragraph" element in a "Container" element with 0 padding on the top, bottom, left and right.
The problem is that GeneratePress's default seems to have about 2 to 4px of bottom and right padding (for its "Container" element).
Please view the following:
Hi Jin,
It's not the container setting, it's the paragraph block you are using which comes with a default bottom margin of 1.5em.
Can you use the headline block of GB instead of the WP paragraph block? Then you should be able to set the headline block's bottom margin to 0.
And as I suggested in your other topic, use GB Grid block, instead of the WP columns block. Grid block offers the control of horizontal gap which Columns block doesn't.
Thanks for your help. Yes you're right about using the headline block to set the bottom margin to 0. That worked.
No Problem Jin, glad to help :)