Site logo

[Resolved] CSS for Margin after Generateblocks Image

Home Forums Support [Resolved] CSS for Margin after Generateblocks Image

Home Forums Support CSS for Margin after Generateblocks Image

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2439409
    Patrick

    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

    #2439650
    Ying
    Staff
    Customer Support

    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;
    }
    #2439871
    Patrick

    Hi Ying,
    Yes it can be a pain in the neck to add the margin manually. I’ll try this CSS, thanks you!

    #2439880
    Ying
    Staff
    Customer Support

    No problem 🙂

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