Total members 11872 |It is currently Mon Nov 28, 2022 10:07 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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>
 




_________________
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 : 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     -  
 change Font of text in java     -  
 change the direction of text in your page     -  
 how to change the alignment text in html     -  
 Forum Description Text color change - Need Help     -  
 Able to Copy Text from Uneditable Text Boxes(JTextfields)     -  
 id Selector with paragraph     -  



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