Jump to content

Font size scaling problem in 7.1

Recommended Posts

I'm having a problem with my fonts scaling properly and I can't figure out what's going on.

This is a SS 7.1 site.

I have my base font size set to 14px (that was the default).

I set my H1 size to 3.6rem in the Site Styles (equivalent is 50.4px when I view in the inspector)

I set my p2 size to 1.35rem (equivalent is 18.9px when I view in the inspector).

These sizes display correctly when my browser window is set above 1620px wide, but when I size the window smaller than that, the font sizes get much BIGGER, which seems counter-intuitive, and not at all how I want them to appear. I want them to be the same.

I can see these parameters in the CSS, but I don't know how the formula works. Can anyone help me? I want the fonts to be the same scale for all laptop and desktop resolutions.

  @media screen and (min-width: 0px) and (max-width: calc(1619px)) and (orientation: landscape)
h1 {
  font-size: calc((3.6 - 1) * 1.2vw + 1rem);
}

 

  @media screen and (min-width: 1620px)
h1 {
  font-size: calc(3.6 * 1rem);
}

The second value (for the 1620px width) is the one I want for all.

 

I wish I didn't have to do this as custom CSS, I feel like this should work better as the default. Is there something I've missed in the Site Styles tools?

Thank you!

Link to comment

UPDATE: After lots of trial & error, and not wanting to do this as a custom CSS fix, I adjusted my base font size to 18px instead of 14px in the Site Styles, and then adjusted all the font styles to a smaller rem size, and the built-in scaling was not as extreme. It's still there in the breakpoint between 1619 and 1620, but not as noticeable now -- the calculation formula for whatever reason is not great.

 

Link to comment
  • 2 months later...

Hello! 

I wanted to follow this thread because I'm experiencing a similar issue. My Heading 1 font scales down when the window is scaled up. I checked my coding to see if there was anything causing this but I think it's a 7.1 issue. Hoping there can be a ccs solution to this!

Thanks to anyone who can help. 

Link to comment
11 hours ago, graciewo said:

Hello! 

I wanted to follow this thread because I'm experiencing a similar issue. My Heading 1 font scales down when the window is scaled up. I checked my coding to see if there was anything causing this but I think it's a 7.1 issue. Hoping there can be a ccs solution to this!

Thanks to anyone who can help. 

We can fix temporarily by using code to adjust h1 size. Can you share link to page where you have problem?

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!)

Link to comment
On 8/17/2022 at 11:39 PM, graciewo said:

Hi @tuanphan

Here is the link to the page where it's most noticeable! 

https://www.carmelart95years.com/inventory

The font at the top of the page is text that has the issue. 

 

Thanks!

Try adding this to Design > Custom CSS

div#block-62dc87e8e5e974d80f3ade72 h2 {
    font-size: 3.5rem !important;
}
@media screen and (max-width:767px) {
div#block-62dc87e8e5e974d80f3ade72 h2 {
    font-size: 2.5rem !important;
}
}

 

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!)

Link to comment
  • 5 weeks later...
11 hours ago, vincentlefre said:

How can we report this as a bug to Squarespace?

You can report technical issues by contacting Squarespace Customer Care directly.

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

Link to comment
  • 4 months later...
  • 4 months later...
  • 4 months later...
  • 3 months later...
  • 4 weeks later...
  • 2 weeks later...
On 5/26/2022 at 1:24 AM, LauraImp said:

UPDATE: After lots of trial & error, and not wanting to do this as a custom CSS fix, I adjusted my base font size to 18px instead of 14px in the Site Styles, and then adjusted all the font styles to a smaller rem size, and the built-in scaling was not as extreme. It's still there in the breakpoint between 1619 and 1620, but not as noticeable now -- the calculation formula for whatever reason is not great.

 

This worked for me too. Changed my base fint from 17 - 18px and all seems better now. Also all my custom css for mobile and tablet font resizing now seems to be working too.  

Link to comment
  • 1 month later...
  • 1 month later...
  • 4 weeks later...
  • 2 weeks later...
On 5/25/2022 at 11:24 AM, LauraImp said:

UPDATE: After lots of trial & error, and not wanting to do this as a custom CSS fix, I adjusted my base font size to 18px instead of 14px in the Site Styles, and then adjusted all the font styles to a smaller rem size, and the built-in scaling was not as extreme. It's still there in the breakpoint between 1619 and 1620, but not as noticeable now -- the calculation formula for whatever reason is not great.

 

THANK YOU this worked for me. Was going crazy trying to figure out a workaround, this really shouldn't be an issue years later. Figured the 'text scaling' option would be the answer but it's pretty useless.

Link to comment

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.