Total members 11895 |It is currently Mon Dec 30, 2024 6:09 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 use CSS attributes to set the maximum height of the Paragraph tag.
Code:
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
    <head>
        <title>max-height of paragraph </title>
<
style type='text/css'>
{
    max-height: 10px;
    background: #B2B3F2;
    padding: 4px;
    font: 12px sans-serif;
    border: 1px solid red;
   
    
}
</
style>


    </head>
    <body>
        <p>
             This paragraph we use CSS attributes to <br/>
             set the maximum height of the paragraph, <br/>
             also the size of the font is changed, <br/>
             the background color, and the border color.
        </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 : Setting maximum height of paragraph -P tag
 Changing the line height of the paragraph     -  
 compute maximum and minimum values, also scaling factor.     -  
 Setting a Cookie Value in php     -  
 Control HR tag width and height     -  
 setting div background position     -  
 (3.0.4) Skymiles Setting Fixed WIDTH     -  
 Dynamically Setting and Accessing Variables     -  
 draws a big image scaled to its width-height as specified     -  
 Get Width and Height -Inner and Outer for HTML element     -  
 Toggle the Multi Monitor Setting in Windows XP     -  



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