Jump to content

Auto hyphenation body text - code doesn't show hyphens

Recommended Posts

Posted

Site URL: https://diedesignwerkstatt.squarespace.com/

Hello,

 

I would like to enable automatic hyphenation in body text. Attached code works, but other characters are displayed instead of a hyphen. What do I need to add in the code so that hyphens are added?

 

This is the code:

 

// Enable word hyphenation body text

p {

    -webkit-hyphens: auto !important;

       -moz-hyphens: auto !important;

        -ms-hyphens: auto !important;

            hyphens: auto !important;

  }

 

Thank you!!

 

Greetings

Jasmin

Bildschirmfoto 2022-01-31 um 09.12.59.png

  • Replies 3
  • Views 412
  • Created
  • Last Reply

Top Posters In This Topic

Posted
On 2/4/2022 at 3:45 AM, tuanphan said:

It looks fine from my end. Can you share solution for other members?

Hi, 

on mobile it looks fine, but not on desktop. 

Do you know a solution for this?

Thank you

Bildschirmfoto 2022-02-07 um 10.45.56.png

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.