'word-break' Example : word break « CSS Attributes and Javascript Style Properties « HTML CSS Reference






'word-break' Example

    
<html>
<body>
<div id="myD" 
     style="width:300px; background-color:beige;">
This is a sample paragraph. 
This is a sample paragraph. 
This is a sample paragraph. 
This is a sample paragraph. 
This is a sample paragraph.This is a sample paragraph. 
This is a sample paragraph. 
This is a sample paragraph.This is a sample paragraph. 
This is a sample paragraph.
</div>
<br>
<input type="button" 
       value="Set wordBreak property to break-all" 
       onclick="myD.style.wordBreak='break-all'">
</body>
</html>

    
      
      








Related examples in the same category

1.'word-break' Syntax and Note
2.'word-break' Possible Values
3.'word-break' is applied to