Jump to content

Adjust button Text size depending on screen

Recommended Posts

Site URL: https://www.ghoulsmagazine.com/editorials

Hello,

on this page of my website I have 6 buttons. 

https://www.ghoulsmagazine.com/editorials

When i visit the page with my iPhone 11, everything is fine.

However, when i visit with a phone with a smaller screen (iPhone SE in this case) one of the buttons text splits in two lines.

image.png.6b84801ba587ee2b87982fc116405a89.png

Is there anything I can do to force the text to display on 1 line or to display a smaller text on these buttons just for devices with same screen size of iPhone SE or smaller?

 

Thank you all 🙂

 

 

https://www.ghoulsmagazine.com/editorials

Link to comment
  • Replies 1
  • Views 446
  • Created
  • Last Reply
26 minutes ago, Karkom said:

Site URL: https://www.ghoulsmagazine.com/editorials

Hello,

on this page of my website I have 6 buttons. 

https://www.ghoulsmagazine.com/editorials

When i visit the page with my iPhone 11, everything is fine.

However, when i visit with a phone with a smaller screen (iPhone SE in this case) one of the buttons text splits in two lines.

image.png.6b84801ba587ee2b87982fc116405a89.png

Is there anything I can do to force the text to display on 1 line or to display a smaller text on these buttons just for devices with same screen size of iPhone SE or smaller?

 

Thank you all 🙂

 

 

https://www.ghoulsmagazine.com/editorials

Maybe a smaller breakpoint can help

@media screen and (max-width: 575px) {
    section[data-section-id="5fedfda66ed34a73670d9b66"] .sqs-block-button {
      padding: 5px;
    }
    section[data-section-id="5fedfda66ed34a73670d9b66"] a {
      padding: 5px;
      font-size: 0.8em;
    }
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

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.