Total members 11889 |It is currently Thu Mar 28, 2024 7:30 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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>
 




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  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     -  
 Changing link color     -  
 Control HR tag width and height     -  
 Changing the Type of a Variable with settype()     -  
 Changing the color and properties of the header tag     -  
 Changing the color of a graph draw in java     -  
 draws a big image scaled to its width-height as specified     -  
 Get Width and Height -Inner and Outer for HTML element     -  
 changing the background color for site main menu.     -  



Topic Tags

HTML Paragraph
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com