Switch to full style
HTML code examples
Post a reply

Changing the line height of the paragraph

Thu Feb 23, 2012 1:12 am

In this example we change the line height of the paragraph (p tag) , using CSS attribute line-height.
Code:
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
    <head>
        <title>line-height of paragraph </title>
<
style type='text/css'>
{
    
    background
: #B2B3F2;
    padding: 3px;
    font: 14px sans-serif;
    border: 1px dashed green;
    line-height: 50px;
   
    
}
</
style>


    </head>
    <body>
        <p>
           This example we control the line height of the paragraph<br/> 
           tag using the CSS attribute line
-height.
        </p>
       
    
</body>
</
html>
 




Post a reply
  Related Posts  to : Changing the line height of the paragraph
 Setting maximum height of paragraph -P tag     -  
 Reading a File Line by Line in php     -  
 Control HR tag width and height     -  
 Changing link color     -  
 Changing the Type of a Variable with settype()     -  
 Changing the color and properties of the header tag     -  
 draws a big image scaled to its width-height as specified     -  
 Get Width and Height -Inner and Outer for HTML element     -  
 Changing the color of a graph draw in java     -  
 changing the background color for site main menu.     -  

Topic Tags

HTML Paragraph