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
  • 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: 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.