'text-overflow' Example : text overflow « CSS « HTML / CSS






'text-overflow' Example

    
<html>
<body>
<div id="myT" 
     style="width:200; 
            background-color:beige; 
            overflow:hidden;">
   <nobr>www.java2s.com<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