Archived topic
Centering caption to width of inline image
3 replies · Started by Craig on March 19, 2022
Hello,
I'm a new GP user. When I center an image caption under an inline image that isn't full-width, the caption is centered to the width of the content area. It leaves the caption being off-center to the image above it. Can the caption's width be inherited by the image so the caption is centered?
Here's an example of a 600px wide image in the Read theme, standard post width.
https://snipboard.io/1CkVLl.jpg
Thanks for your help.
Craig
Hi there,
Any chance you can link us to the page in question?
You can use the private information field:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
Thanks for the reply Leo. It's behind a coming soon page. I realized that centering the image in the content area solves the problem. I had the image set to none. (I had mistakenly assumed the centering would be done by the image width.)
No problem :)