Jump to content

Is this heading text too big on mobile?

Recommended Posts

  • Replies 2
  • Views 181
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

@amandaclairef I think the font size of the h1 heading tag appears relatively large, especially compared to the body text. To address this, you can utilize the following code to adjust the font size of h1 specifically for mobile views. 

@media only screen and (max-width: 767px) {
	h1 {
		font-size : clamp(2rem, 10vw, 5rem) !important;
	}
}

You may find this article helpful for reference on the CSS clamp method: https://developer.mozilla.org/en-US/docs/Web/CSS/clamp

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Link to comment
14 hours ago, Lesum said:

@amandaclairef I think the font size of the h1 heading tag appears relatively large, especially compared to the body text. To address this, you can utilize the following code to adjust the font size of h1 specifically for mobile views. 

@media only screen and (max-width: 767px) {
	h1 {
		font-size : clamp(2rem, 10vw, 5rem) !important;
	}
}

You may find this article helpful for reference on the CSS clamp method: https://developer.mozilla.org/en-US/docs/Web/CSS/clamp

Thank you so much! Do you think the heading font size is too large on the desktop view as well?

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.