Jump to content

Auto hyphenation body text - code doesn't show hyphens

Recommended Posts

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

Link to comment
  • Replies 3
  • Views 316
  • Created
  • Last Reply

Top Posters In This Topic

On 2/7/2022 at 4:49 PM, JasminMunich said:

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

Hi. It looks like you solved this?

https://diedesignwerkstatt.squarespace.com/about

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.