Tagged: caption, image, overlay, responsive, text
The text in the caption overlay is not responsive. It spills out of the boxes onto the design elements below.
My homepage has a grid row with photos. I originally set up the text as 24px with up to six lines of text. It looked great on my widescreen 16:9 monitor. Then I discovered it was spilling out of the boxes when viewed on anything else: standard 4:3 monitors, tablets, mobiles, and just when minimizing the screen on the 16:9 monitor. This happens whether I have the caption set to be visible only on hover or be visible always.
I’ve done a quick fix for 4:3 desktops by pulling the size down to 20px and cutting the number of lines. But I want a permanent fix that will work across all devices.
I generally like Enfold a lot, but I’m disappointed this is happening. Enfold is supposed to be fully responsive. Yet here’s an element as fundamental as the text in image captions that’s failing to respond.
Hey missouriartscouncil,
Could you post a link to the site in question so that we can take a closer look please?
Regards,
Rikard
Hi!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
@media only screen and (max-width: 768px) {
.av-image-caption-overlay-center p {
font-size: 14px;
line-height: 20px;
}}
Cheers!
Yigit
Yigit, what is that code actually going to command to take place?
Hi!
It will decrease font size and line height of captions on screens smaller than 768px
Regards,
Yigit
I will try it, thanks!