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






'line-break' Example

    
<html>
<body>
<p id="myP">Long long long long long long long Long long 
long long long long long Long long long long long long long </p>

<input type="button" 
       value="Set lineBreak to strict" 
       onclick="myP.style.lineBreak='strict'">

<input type="button" 
       value="Set lineBreak to normal" 
       onclick="myP.style.lineBreak='normal'">
</body>
</html>

    
      
      








Related examples in the same category

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