Jump to content

adjusting font size for mobile - I know this has been answered a million times but I'm not getting it

Go to solution Solved by Fearless,

Recommended Posts

  • Replies 7
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 1/29/2024 at 4:48 PM, Fearless said:

I have been searching the forum for days and trying the code that's been suggested but I just can't seem to make the HOME page header font size h2 (4.2rem) on the mobile and h1 (6.5rem) size on desktop. 

Hi, you mean this text in the screenshot? 

image.thumb.png.5d8de3a56291a4dc4f1435386f077f2c.png

 

The code you are using is targeting h1. The text in your hero section is h2.

3 hours ago, Fearless said:

this is the code I'm using:   

@media screen and (max-width:640px) 
{h1 {font-size:4.2rem!important} }

 

Edited by melody495

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Website Developer
e: melody@melodylee.tech


💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain setup.
 Did I help? I like coffee (Thank you)
🧰 See the tools I use (contain affiliate links)


 

Link to comment
6 hours ago, Fearless said:

Hi Melody,  Thanks for getting back.  Yes it's currently h2 on desktop to make it look okay on mobile.  What we like is to make it h1 on desktop and h2 on mobile.

You'll need to change the text back to H1 (that's better for SEO as the page heading anyway), then the code you're using will work and you can adjust to the size to what you want it to be on mobile.

If this helped you, please like or mark my solution as answer so others can scroll to it quickly 👆

Cass Aggett is a Squarespace website designer for go-getting women – no matter what stage of business.

WEBSITEINSTAGRAM

 

Link to comment
  • Solution

Thanks, Cass.  So I would apply this code in the mobile view?  I feel like I have done that several times and it hasn't worked.

@media screen and (max-width:640px) 
{h1 {font-size:4.2rem!important} }


Sorry for these remedial questions -- I'm just getting started.
 

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.