Jump to content

Stopping Text-Wrapping / Line-Breaks on Mobile ...?

Go to solution Solved by Ziggy,

Recommended Posts

Posted

Site URL: https://pryde.bctr.cornell.edu/about

Hi there! I've seen others ask about this, but I would really appreciate some personalized help. I'm trying to stop text blocks from splitting into different lines on mobile. Attached is a photo of how the page looks on desktop (i.e: how it should look) versus how the lines are split on a mobile screen. Notice that "cutting-edge" is split. The same is happening on the next text block.

Any help would be thoroughly appreciated!! Link to the page is here.

image.thumb.png.eabebba3c7a29d9ebc5962173db1574f.png

image.thumb.png.80837a49e7d6851892ccc77a3a24533b.png

 

  • Replies 2
  • Views 419
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution
Posted

Add this to Custom CSS:

@media only screen and (max-width: 640px) {
    h1, h2, h3 {
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        hyphens: none;
    }
}

 

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?

Posted
5 hours ago, Ziggy said:

Add this to Custom CSS:

@media only screen and (max-width: 640px) {
    h1, h2, h3 {
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        hyphens: none;
    }
}

 

It worked! Thank you so much, Ziggy !!!

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.