Tim
(@n7studios)
Hi,
You’d need to add a CSS media query to reduce the font size of the titles depending on the screen resolution. For example:
@media screen and (max-width: 600px) {
#envira-gallery-83 .envira-gallery-item span.title {
font-size: 12px;
}
}
Hi!
I understand what you mean, but it didn’t work.
When I use your CSS media query, titles would turn into font-size: 12px at some point, but they’re just at sizes 160% or 12px. The fact is that some zooms doesn’t fit with this sizes, it should be “a progressive” decrease in the title size.
I applied your CSS to the page so that you can test it.
This is the actual CSS being used:
#envira-gallery-83 .envira-gallery-item span.title {
text-align: center;
display: block;
position: relative;
bottom: 100px;
font-family: "Open Sans",sans-serif;
color: white;
font-size: 160%;
}
@media screen and (max-width: 600px) {
#envira-gallery-83 .envira-gallery-item span.title {
font-size: 12px;
}
}
Thank you very much for your time! Wait for ur answer.
Tim
(@n7studios)
If you require a more progressive approach to font sizing, you’re welcome to use percentages, ems or rems, and add more media queries as necessary for a greater range of step sizes. Example:
@media screen and (max-width: 600px) {
#envira-gallery-83 .envira-gallery-item span.title {
font-size: 1.2em;
}
}
@media screen and (max-width: 500px) {
#envira-gallery-83 .envira-gallery-item span.title {
font-size: 1.1em;
}
}
@media screen and (max-width: 400px) {
#envira-gallery-83 .envira-gallery-item span.title {
font-size: 1em;
}
}