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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.

About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too.

Link to comment
  • 4 months later...
  • 4 months later...
  • 4 months later...

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.