Squarespace Experts. How do I avoid hyphenation showing on the mobile view of my website?

Squarespace Website Experts

To avoid hyphenation on the mobile view of your website, follow these steps:

  1. Use CSS to control hyphenation
    Add the following CSS rule to your stylesheet to disable hyphenation on all devices or specifically target mobile devices:

    /* Disable hyphenation globally */
    p, h1, h2, h3, h4, h5, h6 {
      hyphens: none;
    }
    
    /* Or target only mobile devices */
    @media (max-width: 767px) {
      p, h1, h2, h3, h4, h5, h6 {
        hyphens: none;
      }
    }
    
  2. Check for CSS vendor prefixes
    Some browsers require vendor prefixes for hyphenation. To be safe, include these:

    p, h1, h2, h3, h4, h5, h6 {
      -webkit-hyphens: none;
      -ms-hyphens: none;
      hyphens: none;
    }
    
  3. Avoid manual hyphenation
    Ensure there are no soft hyphens (­) or manual hyphens in your text content.

  4. Review your font and text settings
    Sometimes certain fonts or narrow column widths cause browsers to hyphenate words to improve readability. Increasing line width or adjusting font size on mobile can reduce unwanted hyphenation.

By applying the above CSS, your mobile text should render without automatic hyphenation, improving readability and user experience.

Mark Anderson
Beautifully presented hand made framed limited edition photographs.
https://akaroagallery.com
Previous
Previous

Squarespace Expert. How to import a font into Squarespace 7.1

Next
Next

Squarespace website templates for UK businesses.