CSS3 specs say there is partial support for word-wrap:break-word;
In Chrome you must use word-wrap:break-all;
but there is no hyphen. I'm using text-align:justify;
Has any come up with a solution for there to be a hyphen on word break in chrome?
I've seen this question a couple times, but haven't come across a complete solution.
Here's a code sample of how I'm currently using it.
.threecolumn {
-moz-column-width: auto;
-moz-column-count: 3;
-moz-column-gap: 20px;
-moz-column-rule-color: none;
-moz-column-rule-style: none;
-moz-column-rule-width: 0;
-webkit-column-width: auto;
-webkit-column-count: 3;
-webkit-column-gap: 20px;
-webkit-column-rule-color: none;
-webkit-column-rule-style: none;
-webkit-column-rule-width: 0;
column-width: auto;
column-count: 3;
column-gap: 20px;
column-rule-color: none;
column-rule-style: none;
column-rule-width: 0;
text-align: justify;
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
word-wrap: break-word;
word-break:break-all; /* chrome, no hyphens :( */
}
Works find in FF and Safari.
Using: Firefox:17 Chrome: 23 Safari: 6.0.2