Archived topic
CSS for Margin after Generateblocks Image
3 replies · Started by Patrick on November 28, 2022
Hi there,
Recently, I've been using the Generateblocks image block for placing images directly on general posts.
Previously, I used /container and then placed a traditional image inside the container (shout at me if you see a problem with this, but that's not my main question).
I used either approach because I like to place 30px between the image (or the container) and the coming text.
It strikes me that this ought to be repeatable using, perhaps, some CSS. Have you come across this request before?
Hope all are well,
Patrick
It strikes me that this ought to be repeatable using, perhaps, some CSS. Have you come across this request before?
I'm not sure what you mean, do you want to avoid adding the margin to the image block manually, instead you want some CSS to apply the margin automatically to every GB image block.
If so, you can try this CSS:
.entry-content .gb-block-image {
margin-bottom: 30px;
}
Hi Ying,
Yes it can be a pain in the neck to add the margin manually. I’ll try this CSS, thanks you!
No problem :)