mjmjmjmj Posted July 3, 2020 Share Posted July 3, 2020 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
tuanphan Posted July 5, 2020 Share Posted July 5, 2020 Where did you insert code? Try adding to Code Injection Header 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
mjmjmjmj Posted July 20, 2020 Author Share Posted July 20, 2020 (edited) thank you for the advice, I will have to find a programmer for this as this was meant to be just styling in css which I am more or less able to do, but injecting into header is another thing Edited July 20, 2020 by mjmjmjmj Link to comment
paul2009 Posted July 20, 2020 Share Posted July 20, 2020 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment