Hi, how can I make the masonry titles be smaller and more readable on mobile – https://www.screencast.com/t/LEoqSuTC – without changing them on desktop?
Hey!
To make CSS work only for certain device widths, you can consult this page: https://css-tricks.com/snippets/css/media-queries-for-standard-devices/
For the masonry titles, you can use this CSS:
@media only screen and (max-width: 1024px) {
.av-image-caption-overlay-center {font-size:0.8em !important}
}
You can decrease the value of the font-size to suit your preference. The default value is 1.3em.
I hope that helps!
Best regards,
Sarah
Hi Sarah, it seems as that makes no change.
Hi,
It looks like the element has changed since the last time I checked it. Sorry about that.
Please try this code instead:
@media only screen and (max-width: 1024px) {
h3.av-masonry-entry-title.entry-title {font-size:20px !important}
}
Best regards,
Sarah
Great, that worked. Thanks!
Another issue I noticed is this – https://www.screencast.com/t/HMdCsD1mwYJ – the text that is showing on top of the images on desktop is not showing on mobile. Why is that?
Great! :) You’re welcome.
We’ll close this thread now, since you’ve opened another thread for that other issue.
Best regards,
Sarah