revision:
- defines whether hyphenation is allowed to create more soft wrap opportunities within a line of text.
Property values:
none : words are not hyphenated
manual : default. Words are only hyphenated at ‐ or (if needed)
auto : words are hyphenated where the algorithm is deciding (if needed
initial : sets this property to its default value.
inherit : inherits this property from its parent element.
No hyphen; overflow if needed.
Hyphen only at ‐ or (if needed).
Hyphen where the algorithm is deciding (if needed).
<div> <h4>hyphens: none</h4> <p>No hyphen; overflow if needed.</p> <div class="a one">A veryveryvery long word.</div> <h4>hyphens: manual</h4> <p>Hyphen only at ‐ or (if needed).</p> <div class="b one">A veryveryvery long word.</div> <h4>hyphens: auto</h4> <p>Hyphen where the algorithm is deciding (if needed).</p> <div class="c one">A veryveryvery long word.</div> </div> <style> div.one {width: 5.5vw; border: 0.1vw solid black;} div.a {-webkit-hyphens: none; -ms-hyphens: none; hyphens: none;} div.b {-webkit-hyphens: manual; -ms-hyphens: manual; hyphens: manual;} div.c {-webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto;} </style>