'letter-spacing' Example : letter spacing « CSS Attributes and Javascript Style Properties « HTML CSS Reference






'letter-spacing' Example

    
<html>
<body>
<p id="myP">This is a sample text.</p>

<input type="button" 
       value="Set letterSpacing to 0.5mm" 
       onclick="myP.style.letterSpacing='0.5mm'">
       
<input type="button" 
       value="Set letterSpacing to 1mm" 
       onclick="myP.style.letterSpacing='1mm'">
       
<input type="button" 
       value="Set letterSpacing to normal" 
       onclick="myP.style.letterSpacing='normal'">
</body>
</html>

    
      
      








Related examples in the same category

1.'letter-spacing' Syntax and Note
2.'letter-spacing' Possible Values
3.'letter-spacing' is applied to