html - Stop breaking words in CSS -
i want stop block breaking words (the block contains sentences without abnormally long words), added word-break: keep-all
doesn't work - still breaks in middle of words. how can fix it?
.example { float: left; width: 420px; display: inline-block; word-break: keep-all; } <h:panelgroup id="panel"> <x:message id="id" style="display: block" styleclass="example"/> </h:panelgroup>
in css :
-webkit-hyphens: none; -moz-hyphens: none; -ms-hyphens: none; hyphens: none;
should job :)
refere : https://css-tricks.com/almanac/properties/h/hyphenate/
Comments
Post a Comment