'line-height' Example : line height : CSS Attributes and Javascript Style Properties HTML CSS TUTORIALS


HTML CSS TUTORIALS » CSS Attributes and Javascript Style Properties » line height »

 

'line-height' Example



    
<html>
<body>
<p id="myP" style="background-color:#EEEEEE">
This is the first line if a sample text.
<br>And this is its second line.
</p>
<input type="button" 
       value="Set lineHeight to 30px" 
       onclick="myP.style.lineHeight='30px'">
       
<input type="button" 
       value="Restore line height to normal" 
       onclick="myP.style.lineHeight='normal'">
</body>
</html>

    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» line height