Dedyshka
Dedyshka

Reputation: 471

hyphenate-character in Chrome

Can anybody advice me how I can to force to work css style hyphenate-character in google-chrome? I write -webkit-hyphenate-character, but it isn't work(

thanks!

Upvotes: 0

Views: 5283

Answers (1)

Jukka K. Korpela
Jukka K. Korpela

Reputation: 201508

Chrome supports -webkit-hyphenate-character, see jsfiddle.

But it does not seem to support automatic hyphenation yet. This is why my jsfiddle demo uses Hyphenator.js, which processes the text content, performing hyphenation and adding soft hyphens. You could alternatively hyphenate manually, adding soft hyphens, e.g. using the ­ entity.

Note that for Hyphenator.js as well as for automatic hyphenation in browsers that support it, the lang attribute is needed to specify the language of the contet.

Upvotes: 2

Related Questions