Jump to content

custom css - media query for specific block doesn't seem to be doing anything?

Recommended Posts

Posted

Hi: 

Trying to get the h1 that says "Liberating Midlife" on this page to be smaller on mobile: 

https://www.marybethmoser.com/liberatingmidlife

The following code doesn't seem to have any effect: 

@media screen only and (max-width: 640px) {
#block-yui_3_17_2_1_1705789592653_13019 {
  h1 {
    font-size: 20px !important;
  }
}
}

Thoughts? Thx!

  • Replies 1
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

It looks like you are using this code globally, why not put the min value as 20px instead of 80px here?

#block-yui_3_17_2_1_1705789592653_13019 h1 {
    font-size: clamp(20px,15vw,200px);
}

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.