'word-break' Example : word break « CSS « HTML / CSS






'word-break' Example

    
<html>
<body>
<div id="myD" 
     style="width:400px; background-color:red;">
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