text-indent property
Specifies the indentation of the first line of text in the object.
This property is not supported for Windows apps using JavaScript.
![]() ![]() |
Syntax
text-indent:
<length>
|
<percentage>
| inherit
Property values
A Variant that specifies or receives one of the following values:
- length
-
Floating-point number, followed by an absolute units designator (cm, mm, in, pt, or pc) or a relative units designator (em, ex, or px).
- percentage
-
Integer, followed by a percent sign (%). This value is a percentage of the width of the parent object.
inherit
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | 1 |
| Initial Value | 0 |
Standards information
- CSS 2.1, Section 5.4.7
Remarks
The property can be negative. An indent is not inserted in the middle of an object that was broken by another object, such as br in HTML.
See also
Show:

