Hey Folks –
I’m trying to reduce the size of the page titles on smartphones and tablets.
I’ve added this media query at the top of my stylesheet
/* iPhone (portrait) and up ———– */
@media only screen and (min-width : 321px) and (max-width : 1024px){
#top .alternate_color.title_container .main-title a{
font-size: 10px !important;
}
}
It works when I reduce the size of the browser but not on my mobile device.
Is there something I’m missing?
Cheers
sorry and here is the link to a page with the title I’m trying to target.
Hi!
Try with this code instead:
@media only screen and (max-width: 767px) {
#top .alternate_color.title_container .main-title a{
font-size: 14px !important;
}
Best regards,
Josue
perfect – what was I doing wrong?
Hi,
The min-width was unnecessary in the media query.
Regards,
Josue
thanks – appreciate the help