'text-overflow' Example : text overflow « CSS Attributes and Javascript Style Properties « HTML CSS Reference






'text-overflow' Example

    
<html>
<body>
<div id="myT" 
     style="width:20; 
            background-color:beige; 
            overflow:hidden;">
   <nobr>Text Text Text Text Text Text Text Text Text Text Text Text Text Text 
   Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text 
   Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text 
   <nobr>
</div>
<input type="button" 
       value='text-overflow = "ellipsis"' 
       onclick="myT.style.textOverflow = 'ellipsis'">
       
<input type="button" 
       value='text-overflow = "clip"' 
       onclick="myT.style.textOverflow = 'clip'">
</body>
</html>

    
      
      








Related examples in the same category

1.'text-overflow' Syntax and Note
2.'text-overflow' is applied to