left align caption text for individual images
-
Hi,
As they are set on auto-updating, I am using the latest versions of WordPress (6.0.2) and free Responsive theme (4.7.4) on a self-hosted site. By default, image captions appear to be centered under an image regardless of where the image is placed. This is generally fine, but when any given caption gets longer and comprises several lines, center alignment for a caption can look very awkward and I really need to change it to left alignment (relative to the associated image).
I was able to track down CSS for changing to left caption alignment on a page-wide basis, in my instance using the code:
.page-id-648 figcaption {
text-align:left;
}But as indicated above I may need/want to do it only for selected images/captions on the page. And even through I am able to track down id numbers for the individual figures and captions that I would like to work with, thus far I have been unable to figure out the CSS syntax on my own that will work to do this. It is probably right in front of my nose somewhere. So any suggestions would be greatly appreciated. Thank you very much in advance for any responses.
- The topic ‘left align caption text for individual images’ is closed to new replies.