Switch to full style
HTML code examples
Post a reply

Change the text indent in the paragraph

Thu Feb 23, 2012 2:06 pm

In the following example we use CSS attribute text-indent. It change the start index of the paragraph.

Code:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
  <
head>
    <
title>set text indent of a paragraph</title>
    <
meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <
style>
 
{
   
text-indent: -10px;
   
font1em VerdanaGenevaArialHelveticasans-serif;
   
line-height1.5em;
   
border:2px dashed red;
}
</
style>    
  </
head>
  <
body>
    <
h1>Put your header title here.</h1>
    <
pWe use CSS attribute to change the text indentnotice the 
    starting of the paragraph when changing the text
-indent value.
 
We use CSS attribute to change the text indentnotice the 
    starting of the paragraph when changing the text
-indent value
 
We use CSS attribute to change the text indentnotice the 
    starting of the paragraph when changing the text
-indent value.     
     </
p>
  </
body>
</
html>
 




Post a reply
  Related Posts  to : Change the text indent in the paragraph
 text Indent value to table     -  
 change background of the paragraph     -  
 Change the margin and padding of paragraph     -  
 Change the word spacing in paragraph     -  
 how to change the alignment text in html     -  
 change Font of text in java     -  
 change the direction of text in your page     -  
 Forum Description Text color change - Need Help     -  
 Able to Copy Text from Uneditable Text Boxes(JTextfields)     -  
 id Selector with paragraph     -  

Topic Tags

HTML Paragraph