Jump to content

Font size change on mobile device

Go to solution Solved by tuanphan,

Recommended Posts

Posted

Hi,

When I scroll down the page in mobile web (on my iPhone in Chrome), the font size changes on every page.

Why is this happening?

How can I prevent this from happening?

Can I fix it without code? If no, what code should I use? 

I was given this code to add in, but it only worked for the homepage:

@media screen and (max-width:767px) {
div#block-73ce79433bfa71edec75 h1 {
    font-size: 40px !important;
}
div#block-c419671ba5feb1ec51dd h2 {
    font-size: 32px !important;
}
}

 

Thanks in advance!

  • Replies 5
  • Views 956
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Thank you!

I noticed other fonts were jumping too, like "paragraph 1" and "h3".  So, I followed your code concept to h3:

body h3 {
    font-size: 24px !important;
}

and that worked!

But I don't know what to use for "paragraph 1". Can you provide code for those too? Thanks!

  • Solution
Posted
On 9/2/2024 at 8:54 PM, harlowbogie said:

Thank you!

I noticed other fonts were jumping too, like "paragraph 1" and "h3".  So, I followed your code concept to h3:

body h3 {
    font-size: 24px !important;
}

and that worked!

But I don't know what to use for "paragraph 1". Can you provide code for those too? Thanks!

Paragraph 1 is

p.sqsrte-large

Paragraph 3 is

p.sqsrte-small

Paragraph 2 is

p:not(.sqsrte-large):not(.sqsrte-small)

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.