paragraph height css

paragraph height css

How can i specify height of a paragraph in CSS?

View Answers

March 14, 2011 at 2:40 PM

<html>
<head>
<style type="text/css">
p.p1 {line-height:90%;}
p.p2 {line-height:200%;}
</style>
</head>

<body>
<p>
Java is great programming language for the development of enterprise grade applications. This programming Language is evolved from a language named Oak. Oak was developed in the early nineties at Sun Microsystems as a platform-independent language aimed at allowing entertainment appliances such as video game consoles and VCRs to communicate . 
</p>

<p class="p1">
Java is great programming language for the development of enterprise grade applications. This programming Language is evolved from a language named Oak. Oak was developed in the early nineties at Sun Microsystems as a platform-independent language aimed at allowing entertainment appliances such as video game consoles and VCRs to communicate . 
</p>

<p class="p2">
Java is great programming language for the development of enterprise grade applications. This programming Language is evolved from a language named Oak. Oak was developed in the early nineties at Sun Microsystems as a platform-independent language aimed at allowing entertainment appliances such as video game consoles and VCRs to communicate . 
</p>

</body>
</html>









Related Tutorials/Questions & Answers:
paragraph height css
paragraph height css  How can i specify height of a paragraph in CSS?   This is how you can set the Height of Paragraph in CSS .pclass { height:200px; } <p class="pclass"> some text </p>
paragraph height css
paragraph height css  How can i specify height of a paragraph in CSS?   <html> <head> <style type="text/css"> p.p1 {line-height:90%;} p.p2 {line-height:200%;} </style> </head> <body>
Advertisements
CSS problem height from top
CSS problem height from top  here i wrote a code but can you tell me how to increase height from top <html> <head> <style type="text/css"> .hello img { height : 100px; width :100px; margin-top
read paragraph
read paragraph  how to read paragraph from one file to another file
jQuery "height" method
;height" method of jQuery. The difference between .css('height') and .height() is that the latter returns a unit-less pixel value (for example...;nbsp;</div> <p> Sample paragraph to test height </p>
searching the string in a paragraph?
searching the string in a paragraph?  how to search a string in a paragraph and display the corresponding line number and position of a string in java
ModuleNotFoundError: No module named 'paragraph'
ModuleNotFoundError: No module named 'paragraph'  Hi, My Python... 'paragraph' How to remove the ModuleNotFoundError: No module named 'paragraph' error? Thanks   Hi, In your python environment you
UITabbar height
UITabbar height  Hi, What is the height of UITabbar? Thanks   Hi, Size of UITabBar is 320x49. Thanks
UIScrollView Height
UIScrollView Height  How can i set the height and width of the UIScrollView according to my requirement. Actually i'm creating a login application form iPhone and using UIScrollView. Also i have number of item to add
Paragraph in HTML
Paragraph in HTML       The Paragraph in HTML are defined inside the <p> and </p... from Paragraph in HTML.In this Tutorial, the HTML code begin with a <html
Working with CSS(CSS Manipulation)
; // returns height of paragraph. $(window).height();   // returns...() instead. Example : The following code get the outer Height of a paragraph... Working with CSS(CSS Manipulation)   
javascript set scroll height
javascript set scroll height  How to set scroll height in JavaScript?   CSS Scroll Method div { width:150px; height:150px; overflow:scroll; } JavaScript ScrollTo method <script type="text/javascript">
CSS
style sheet validates at Note that some warnings may be unavoidable, but your CSS
Resizing Height of UITextView iPhone
Resizing Height of UITextView iPhone  Hi all, Is it possible to resize the height of the UITextField in objective C
No Max-height Fixed
/css"> textarea.expandText { line-height: 10px... No Max-height Fixed      ... of a Textarea with minimum fixed height but no max height fixed.ADS_TO_REPLACE_1 Steps
UIImage width and height
UIImage width and height  Hi, How I can find the width and height of UIImage object. Let's know an example code for finding UIImage width and height. ThanksADS_TO_REPLACE_1
UITextView Change Height dynamically
UITextView Change Height dynamically  dynamically expand the height of UITextView.   - (void) textViewDidEndEditing:(UITextView *)textView { CGRect frame = mTextView.frame; frame.size.height
How to index a given paragraph in alphabetical order
How to index a given paragraph in alphabetical order  Write a java program to index a given paragraph. Paragraph should be obtained during runtime... paragraph : This is a technical round. Please index the given paragraph. Output
ModuleNotFoundError: No module named 'sphinx-paragraph-extractor'
ModuleNotFoundError: No module named 'sphinx-paragraph-extractor'  Hi...: No module named 'sphinx-paragraph-extractor' How to remove the ModuleNotFoundError: No module named 'sphinx-paragraph-extractor' error? Thanks
ModuleNotFoundError: No module named 'sphinx-paragraph-extractor'
ModuleNotFoundError: No module named 'sphinx-paragraph-extractor'  Hi...: No module named 'sphinx-paragraph-extractor' How to remove the ModuleNotFoundError: No module named 'sphinx-paragraph-extractor' error? Thanks
Height for cell in table view - UITableView
Height for cell in table view - UITableView  UITableview height for cell What is the height for cell in table view iPhone mobile application
image height width php - PHP
image height width php  I am digging for the PHP Script to set the height and width of Image in my app
Make Paragraph and Set Alignment
Make Paragraph and Set Alignment     ... are going to explain how we can make paragraph and how we can gives various alignment. To make a paragraph we use Paragraph("Text"
How to remove paragraph from ms word
How to remove paragraph from ms word  Hi! I am using MS Word to edit my text but somehow i get paragraph sign on every line of my text. So, can any one please tell me how to remove paragraph from ms word?   CTRL+SHIFT+8
get image height and width html
get image height and width html  How to get image height and width in html?    var img = new Image(); img.src = your_src img.width img.height
With Fixed Max-Height
With Fixed Max-Height      ... generate of a Textarea with fixed Max-Height. Step 1:  ADS_TO_REPLACE_2..." content="text/css"> <meta http-equiv="Content-Script-Type" content
CSS in Flex
CSS in Flex  Hi...... Please tell me How do you use css styles in flex? Thanks  Ans: @namespace s "library://ns.adobe.com...-weight:bold; button-width:100px; button-height:50px; } .label{ font-family
css click box
css click box  I wanted to create a click box in CSS with a hyperlink... file .. click box Text CSS a { display:inline-block; width:30px; height:30px; background-color:#ccc; border:1px solid #ff0000; }  
HTML5 video height width.
HTML5 video height width. Introduction:The <video> tag use for embedding... will introduce you to about the height and width attribute . They define height... Description height pixel Define height of media. width pixel
Hide/Show paragraph by button click
Hide/Show paragraph by button click In this tutorial, we will discuss about how to hide/show paragraph by clicking on button using jQuery. In the below example, button click event generate action of hiding paragraph and it also
ModuleNotFoundError: No module named 'odoo9-addon-partner-contact-height'
ModuleNotFoundError: No module named 'odoo9-addon-partner-contact-height' ...: ModuleNotFoundError: No module named 'odoo9-addon-partner-contact-height' How to remove the ModuleNotFoundError: No module named 'odoo9-addon-partner-contact-height
HTML CSS
HTML CSS  Explain in brief about the term CSS
UIView frame x,y width and height
UIView frame x,y width and height  HI, How to print the x,y width and height of UIView? Thanks   Hi, Following code can be used: CGRect myFrame = myview_.frame; NSLog(@"height = %f", myFrame.size.height); NSLog
Change paragraph by clicking button(Toggle effect)
Change paragraph by clicking button(Toggle effect) In this tutorial, we will discuss about how to change paragraph by clicking button using jQuery. In the above example, a button & paragraph is displaying initially .When we click
How set the height of Thumb in Vertical scrollbar..?
How set the height of Thumb in Vertical scrollbar..?  I have created a Vertical scrollbar. I have removed up arrow and down arrow. also i have changed the skin of thumb by including an image to it. I want the size of thumb same
CSS in flex
CSS in flex  Hi....... Please tell me How can I load CSS style... dynamically loading of CSS file is not supported in flex. you can compile the CSS file in swf and use it dynamically in your application. Loading style
CSS Apply
CSS Apply  How can I apply different CSS to my application for background by taking CSS list in Select tag i.e. Combo box. for e.g As in Orkut we select theme & by clicking to apply it changes background theme & color
Resize outer div when inner div's height increases
Resize outer div when inner div's height increases   How can I increase the outer div height automatically when inner div's height increases in javascript
What are the advantages and disadvantages of CSS?
What are the advantages and disadvantages of CSS?  What are the advantages and disadvantages of CSS
css
css
css
jQuery CSS Selector
jQuery CSS Selector       jQuery CSS Selector In this section we are learning about the jQuery CSS Selector. The CSS Selectors is the powerful API provided
ModuleNotFoundError: No module named 'css'
ModuleNotFoundError: No module named 'css'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'css' How to remove the ModuleNotFoundError: No module named 'css' error
ModuleNotFoundError: No module named 'css'
ModuleNotFoundError: No module named 'css'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'css' How to remove the ModuleNotFoundError: No module named 'css' error
ModuleNotFoundError: No module named 'css'
ModuleNotFoundError: No module named 'css'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'css' How to remove the ModuleNotFoundError: No module named 'css' error
Setting the Height and Width of Rows and columns in JTable
Setting the Height and Width of Rows and columns in JTable... tutorial you will learn how to set the height and width of rows and columns... and columns format so, each and every rows and columns have some specific height
parser jquery css
parser jquery css  How to parser jquery in css
Include CSS in HTML
Include CSS in HTML  Can any one tell me how to include a CSS file into my HTML page. A code format to include the CSS will work. Thanks in Advance.   Include CSS in HTML To include a CSS or Style Sheet into you HTML
Change panel height, width and title
Change panel height, width and title         With the help of a button's click we can change the height, width , and title of a panel. In the given tutorial

Ads