CSS2 » Properties » text-indent

Version: Level 1

Compability: IE4+  N4+

Syntax:
text-indent : length | percentage
percentage
The percentage value is based upon the total width being defined as 100%.
length
The length value can be in any of the following seven units. Use the abbreviation.
 
Length Abbrev.
centimeters cm
ems em
inches in
millimeters mm
picas pc
pixels px
points pt

The text-indent property indents the first line of text to the right or left by the specified length or percentage. If the length or percentage is a negative number, the line is indented to the left. A positive number indents to the right. This property is inherited.

Examples

Code:
p { text-indent:  0.5in; }
p { text-indent:  -15pc; }
p { text-indent:  24pt; }
p { text-indent:  5.5%; }
p { text-indent:  -8%; }
Language(s): CSS2
Code:
p.one { text-indent:  25px; }
...
<p>
We are a premier developers' resource featuring over three thousand pages containing comprehensive quick reference guides, tutorials, knowledge base articles, and useful products to serve a wide range of developers' needs.
</p>
Output:

We are a premier developers' resource featuring over three thousand pages containing comprehensive quick reference guides, tutorials, knowledge base articles, and useful products to serve a wide range of developers' needs.

Language(s): CSS2

See Also: