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: 

 

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation 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.

Buy me a coffee

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.