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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -