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


HTML CSS TUTORIALS » CSS Attributes and Javascript Style Properties » letter spacing »

 

'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>

    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» letter spacing