× Please always enter the name of the template and the Joomla version and the live URL if available

file [SOLVED] How to downsize the article title font on cellphon

  • Posts: 21
  • Thank you received: 0

How to downsize the article title font on cellphon was created by maesmarc

Hi, i am using the "modern" template for design on www.webs2go.be/ontwerp/labea1
On smartphone, the article title fonts are kind of "big".
How can I downsize the title fonts please?
I have added to css/custom.ccc the following, but it does not seen to work with this css,...

/* Small Screen */
@media (max-width: 768px) {
h1, uk-article-title,
font-size: 10% !important;
line-height: 1.2em !important;
}

Thanks for any help
3 years 5 months ago #1
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 8776
  • Thank you received: 1732

Replied by joomlaplates on topic How to downsize the article title font on cellphon

Try this
/* Small Screen */
@media (max-width: 768px) {
h1.uk-article-title {font-size: 1.2em !important; line-height: 1.2em !important;}
}
The following user(s) said Thank You: maesmarc
Last edit: 3 years 5 months ago by joomlaplates.
3 years 5 months ago #2

Please Log in or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 0

Replied by maesmarc on topic How to downsize the article title font on cellphon

Thanks, but this one did not seem to work.
I solved the problem with a reply that you gave on an other person who had the same problem.
I added the following, and this solved it for me,
/* Small Screen */
@media (max-width: 768px) {
h1 {
font-size: 120% !important;
line-height: 1.3 !important;
}
h2,
h3,
h4,
h5,
h6 {
font-size: 16px !important;
line-height: 1.4 !important;
}
}
3 years 5 months ago #3

Please Log in or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 0

Replied by maesmarc on topic [SOLVED] How to downsize the article title font on cellphon

Problem solved.
3 years 5 months ago #4

Please Log in or Create an account to join the conversation.

Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2022 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License