Jump to content

How to stop words from wrapping/breaking to next line on smaller screen size?

Recommended Posts

Site URL: https://www.thedrop.ca/doterra-healthy-essentials

Hi there, I'm having an issue with words splitting up and wrapping to the next line when I narrow the width of the window I'm using (both chrome and safari). This seems to be a site-wide issue, so I can't use the codes provided in similar threads that use block IDs. It seems to be when I have multiple columns of text. It's fine on mobile view since it stacks the columns instead of having them side by side, but once my desktop browser gets to about 836px in width, it breaks up  the word and doesn't even add a hyphen. If you narrow the window more it eventually switches to stacking the columns on top of one another like in the mobile view, but there's a really awkward period between full screen and mobile size where it splits the words. It also happens on ipad. Mobile view is fine. 

Any ideas?

Screen Shot 2022-01-11 at 5.13.38 PM.png

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Add to Design > Custom CSS

/* Essential oils tablet */
@media screen and (max-width:991px) and (min-width:768px) {
div#block-8c8ee6fc1f8bc4f5d2db a:first-child {
    white-space: nowrap;
}
}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
17 hours ago, thedropca said:

@tuanphan Thanks! That worked for that particular page. Is there a way to do it so it's site-wide? I have a bunch of pages this happens on and the list will only get longer as I grow my store. Or do I have to just repeat the same code with the different blockID for each page?

Not sure. Can you share link link to some pages where you have problem? We can check easier

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.