Jump to content

text auto scaling

Recommended Posts

Hi,

 

I would like to have text scaling automatically according to the page width, instead of using a fix > 

@media only screen and (max-width: 767px) {

I would like to use something like this, but it does not work for the Heading1 override, am I doing something wrong or is it just not supported? 

 font-size: calc(80px + (150 - 50) * ((100vw - 320 * 1px) / (1920 - 320))) !important;

thx

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 2 weeks later...
On 7/3/2020 at 8:54 PM, mjmjmjmj said:

I would like to use something like this, but it does not work for the Heading1 override, am I doing something wrong or is it just not supported? 

To understand the issues when doing calculations in the Custom CSS Editor, see my post here: 

 

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

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.