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


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

 

'word-spacing' Example



    
<html>
<body>
<div id="myD" 
     style="width:400px; background-color:red;">
This is a sample paragraph.
</div>
<br>
<input type="button" 
       value="Set wordSpacing property to 10px" 
       onclick="myD.style.wordSpacing='10px'">
       
<input type="button" 
       value="Set wordSpacing property to 0.5cm" 
       onclick="myD.style.wordSpacing='0.5cm'">
       
<input type="button" 
       value="Set wordSpacing property to normal" 
       onclick="myD.style.wordSpacing='normal'">
</body>
</html>

    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» word spacing