• Resolved afmeck

    (@afmeckel)


    Image blocks lack padding or margins on the sides in mobile view on my site. Text blocks have it by default, apparently.

    Is there any way to add it to image blocks natively? Or maybe a snippet of CSS, if not?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support David Smith

    (@get_dave)

    Looking at your site I think this is typically something handled by a Theme. For example Twenty Twenty One seems to have a rule which adds spacing around images.

    That said, you could try something akin to the following CSS:

    
    .entry-content .wp-block-image figure:not(.alignfull):not(.alignwide) {
        margin-left: 20px;
        margin-right: 20px;
    }
    

    I hope that helps?

    Thread Starter afmeck

    (@afmeckel)

    That worked perfectly. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No padding or margins for image blocks?’ is closed to new replies.