Mobile Font Size - Question | JoomShaper

Mobile Font Size

KR

Kenneth Robb

Helix Framework 3 years ago

I have a site and when I look at it on a mobile device the font sizes remain the same. Is there a way to scale the fonts or set a different size for rendering on mobile. The URL of the Site is www.andywraight.com. Evertything is fine on PC but the font siz could be doing with being about half the siz it is on mobile devices.

Joomla Version 3.9.25 Helix Ultimate Framework 1.1.2

0
5 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #11564
  1. You don't have to override font-family for mobile view. Just reduce font-size and line-height. font-weight - only if you really do not need bold.

  2. I cannot teach you here CSS, but inside my code just add extra line for < h1 > with span used on home page :

@media (max-width: 580px) { 
body, p, li {font-size: 17px;} 
h1 span {font-size: 21px; }
}
  1. I strongly recommend reading a book about CSS.
0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 3 years ago #11468

Hi, yes, possible - but it request using extra CSS for mobile view only.

@media (max-width: 580px) { 
body, p, li {font-size: 17px;} 
}

you can also more html tags with font size etc.

0
KR
Kenneth Robb
Accepted Answer
3 years ago #11480

Thank you, I shall give that a go and see how I get on

0
KR
Kenneth Robb
Accepted Answer
3 years ago #11491

ok I have added the following into the Custom Code/Custom CSS in the template @media (max-width:580px) { h1{font-family: 'Raleway', sans-serif;font-size: 30px;font-weight: 400;font-style: normal;} }

When I l;ook in the page source at www.andywraight.com i see

@media (max-width:580px) { h1{font-family: 'Raleway', sans-serif;font-size: 30px;font-weight: 400;font-style: normal;} } body{font-family: 'Raleway', sans-serif;font-size: 24px;font-weight: 400;font-style: normal;}

h1{font-family: 'Raleway', sans-serif;font-size: 75px;font-weight: 400;font-style: normal;}

I can see the line I want to override. But it does not seem to have done it. Kenny

0
KR
Kenneth Robb
Accepted Answer
3 years ago #11570

Awesome, thanks. Its working Now

Kenny

0