Use CSS Hyphens
p.hyphenize {
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
-o-hyphens: auto;
hyphens: auto;
}
Options are: none | manual | auto
Default is: manual
Basic Browser support (not for every language):
- Chrome >= 13
- Firefox >= 6
- Internet Explorer >= 10
- Safari >= 5.1
You can find more details and a live example at MDN
Written by Udo
Related protips
4 Responses
result example? browser support? side effects?
over 1 year ago
·
@dpashkevich more like this? :)
over 1 year ago
·
Much better, thanks :)
Would be nice to have a brief introduction on what it is and why people should use it :)
over 1 year ago
·
I'll do it if I have more than a mobilephone to write. Thx for the feedback :)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Css
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#