1. SYSOPONLINE
  2. Sherlock Holmes
  3. Commercial Templates
  4. Thursday, 05 August 2021
  5.  Subscribe via email
I can't manage to make the headlines smaller for mobile phones.
I would like the word "translation" to be displayed smaller on the mobile phone.


https://astrid-schuenemann.de/en/books.html

I have adjusted the individual fonts in custom.css.


h3{
font-size: 1.8em;
text-rendering: optimizelegibility;
text-transform: uppercase;
}

h1, h2{
font-size: 1.5em;
text-rendering: optimizelegibility;
}


h4, h5, h6 {
font-size: 1.4em;
text-rendering: optimizelegibility;
}


I have tried with media queries. Unfortunately I can't get it to work.

/* All Smartphones in portrait and landscape ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* YOUR STYLE GOES HERE */
}
toobig.PNG
Attachments (1)
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Rather than wrapping your CSS in a media query, have you considered adding it to the Responsive Custom CSS fields within the General -> Responsive Options tab of your template settings. These fields will wrap your CSS in a media query for you. For more details on using these fields may I suggest the following article... https://joomla51.com/tutorials/template-parameters/applying-custom-css-to-a-screensize-device

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!