Site logo

[Resolved] Text sticking to under image

Home Forums Support [Resolved] Text sticking to under image

Home Forums Support Text sticking to under image

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2414619
    Dina

    Hi, I noticed that I have text sticking to images in all my articles unless I deliberately leave an empty block under the image. Here’s an illustration: https://snipboard.io/2AW4DG.jpg

    It’s too much work to update all my articles——is there a simple solution to fix this? (i.e. to add a space under all images so the text doesn’t stick to the bottom of the images). Thanks!

    #2414632
    David
    Staff
    Customer Support

    Hi there,

    yeah, WP 6.1 made some changes to there Image Block styles ie. they removed the bottom margin.

    Add this CSS to correct that:

    figure {
        margin-bottom: 1.5em;
    }
    #2414638
    Dina

    Hi David, I have to add it to my Custom CSS, yeah? I just added it like this: https://snipboard.io/
    But it doesn’t seem to be working. Any ideas?

    #2414645
    David
    Staff
    Customer Support

    Thats correct.
    Change the CSS to this:

    
    .wp-block-image figure {
        margin-bottom: 1.5em;
    }
    #2414694
    Dina

    Thanks David! That seems to be working for a few articles. I added both CSS and it’s fixed the issue on desktop. On mobile, however, the issue persists. Any ideas for this? Thanks SO much for your help.

    #2414721
    David
    Staff
    Customer Support

    Can you clear the autoptimize cache ? I think the old CSS is stuck in there 🙂

    #2415144
    Dina

    It works. Thanks so much again, David! Appreciate it.

    #2415155
    David
    Staff
    Customer Support

    Glad to hear that!

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