Streaming live at 10am (PST)

Orphan Text Solution in Webflow


#1

When using the paragraph or Header blocks how do you avoid orphan text? The   route, it seems doesn't work.


#2

Hi, @jdesign, you might try to paste this custom css into your header of your site, which may help. After pasting this code into the Header of your site, save changes and republish:

<style>

p {

-ms-word-break: break-all;
     word-break: break-all;

     /* Non standard for webkit */
     word-break: break-word;

-webkit-hyphens: auto;
   -moz-hyphens: auto;
    -ms-hyphens: auto;
        hyphens: auto;

}

</style>

See if that helps. The affect to the word wrap etc, is not visible until publish. Cheers, Dave


#3

Hmmm. Didn't seem to help. Still ending up with a single word on a line at the end of a paragraph. You can see it on cvp.webflow.com on an iPhone.

The code actually just added hyphens at almost every line.


#4

Hi @jdesign, I searched a bit online and stumbled upon a few different ways to approach this. It you're able to share a public link, that would help a lot! smile


#5

chrisvittpiano.com if you look at it on an iPhone 5c you will see the one word on a single line at the end of a couple paragraphs.


#6

Could you please send me your site's read-only link so I can take a closer look? More info on read-only links here: http://help.webflow.com/general/guidelines#read-only-link


#7

@thewonglv Thanks for the help. I ended up just adjusting padding a bit in some areas – means section padding isn't 100% consistent all through the site but I don't anyone would ever notice but me.


#8

#9