text-indent property

Specifies the indentation of the first line of text in the object.

This property is not supported for Windows Store apps using JavaScript.

CSS 2.1, Section 5.4.7Internet Explorer 9

 

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 ToAll elements
Mediavisual
Inherited1
Initial Value0

Standards information

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

CSSStyleDeclaration
currentStyle
runtimeStyle
style

 

 

Show:
© 2014 Microsoft