GeLac
(Genevieve Lacombe)
January 5, 2021, 11:53pm
1
Why the image caption size is not the same under every image in CMS?
I have 9 images in my blog post and the caption is not the same size for all the images. Why?
In Custom code - Head code I have this:
figure.w-richtext-align-fullwidth figcaption { font-size: 12px; }
Here is my public share link:
Thanks!
mikeyevin
(Mike Yevin)
January 6, 2021, 1:33am
2
It looks like there’s a difference on the figure classes that’s causing the issue:
w-richtext-align- center
vs
w-richtext-align- fullwidth
If you want to account for these differences, you can tweak your custom code a bit so it uses the attribute wildcard selector instead:
figure[class^="w-richtext-align-"] figcaption { font-size: 12px; }
GeLac
(Genevieve Lacombe)
January 6, 2021, 3:10am
3
Thank you! I tweaked the code like suggested and everything looks good now.
1 Like