LauraImp Posted May 24, 2022 Share Posted May 24, 2022 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
LauraImp Posted May 25, 2022 Author Share Posted May 25, 2022 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
Darya Posted May 25, 2022 Share Posted May 25, 2022 Hello! Following! I am having the same issue on my websites - I would like to find a solution for this as well. Link to comment
graciewo Posted August 13, 2022 Share Posted August 13, 2022 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
tuanphan Posted August 14, 2022 Share Posted August 14, 2022 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
graciewo Posted August 17, 2022 Share Posted August 17, 2022 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! Link to comment
tuanphan Posted August 21, 2022 Share Posted August 21, 2022 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
vincentlefre Posted September 20, 2022 Share Posted September 20, 2022 Same issue here. Fixed with custom CSS. But man it's crazy that this formula is wrong. What a nightmare to have to write custom code for every instance this occurs. It pains me to think of all the websites that behave incorrectly because of this. How can we report this as a bug to Squarespace? OldLadyStudio 1 Link to comment
paul2009 Posted September 21, 2022 Share Posted September 21, 2022 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. vincentlefre, tuanphan and OldLadyStudio 3 About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
focuscreative Posted February 1 Share Posted February 1 Following this as having the same issue. Has anyone worked out what the code is to stop this from happening? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment