Site logo

Archived topic

How I can give more padding between text and image

6 replies · Started by Former User on January 14, 2023

Viewing posts 1–7 of 7

Hello,

How I can give image like a 20px padding top and bottom so, it gives some space between image and text on articles?

Thanks!

Sara

Hi there,

by default there should be bottom margin on text and images.
Can i see a site where there is no spacing ?

Hello David,

Yes, for example on this article below, you can see most images there is no space between text and image.

Try adding this CSS:

.wp-block-image {
    margin-bottom: 1.5em;
}

Hello David,

Thank you very much that worked like a charm!!

Glad to hear that !

:)

This archived topic is closed to new replies.