Archived topic
Placing image caption to the left, changing font style
5 replies · Started by Daren on March 12, 2022
Hi there. Is there a way of having the image caption to the left of the image, like in the example website?
It's to the left, aligned with the bottom of the image, smaller grey italic font
Thanks
Hi there,
can you share a link to a page on your site where you want to apply this style ?
Sure
Tricky without using custom HTML.
But you can try adding this CSS:
@media(min-width: 1025px) {
.wp-block-image figure.alignleft figcaption {
position: relative;
left: calc(-100% - 20px);
text-align: right;
font-style: italic;
color: #ccc;
}
}
you can adjust the min-width to set what size screens it applies to.
And it will only apply to images that have been left aligned
Thanks!
Sorry I missed the other requests, I updated the CSS above to include them