Jump to content

Making list section titles the same size as h3 on tablets/mobile

Recommended Posts

Posted

Site URL: https://roadrunner-star-7b6s.squarespace.com/

Hello! I've added some custom CSS to make the titles on list sections ("What kinds of tree restoration are we looking for") and ("How will the process work") to make them the same size as the h3 styling on other sections. However, when I view on tablet/mobile size, the custom headers stay large, and the actual h3's scale down a bit. How can I make it so that the custom CSS titles scale down accordingly?

Thank you!!

pass: fund

Screen Shot 2021-09-03 at 8.47.24 AM.png

  • Replies 2
  • Views 520
  • Created
  • Last Reply
Posted

Hi,

h3 desktop - mobile uses different size, not same.

h3 mobile is calc((2.2 - 1) * 1.2vh + 1rem)

Use this code

.list-section-title {
    font-family: Poppins !important;
    font-size: 2.2rem !important;
    font-weight: 500 !important;
    font-style: normal !important;
    line-height: 1.4em !important;
    letter-spacing: 0em !important;
    text-align: left !important;
}
@media screen and (max-width:767px) {
.list-section-title {
    font-size: calc(~"(2.2 - 1) * 1.2vh + 1rem") !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.