Hi There,
I added the following CSS to add some margin below an image with a caption in a post:
/*Blog post content image caption styling */
.wp-block-image figcaption {
margin-top: 0.5em;
margin-bottom: 2.5em;
}
Which works fine BUT if the image has no caption, there is no margin so I added this:
/*Blog post content image styling */
.blog-post-content-wrapper img {
border-radius: 1rem; margin-top: 0.5em;
margin-bottom: 2.5em;
}
Which works for images without caption but if image has caption this adds margin above caption – not what I wanted 🙂
Can you help (I did a search on past topics but couldn’t find anything on this)
Example post URL with images in private info
Cheers