CSS Property - Text Indent

Value: <length> | <percentage>
Initial: 0
Applies to: block-level elements
Inherited: yes
Percentage values: refer to parent element's width

The CSS property "text-indent" specifies the indentation that appears before the first formatted line.

An indentation is not inserted in the middle of an element that was broken by another (such as "BR" in HTML).


text-indent: 3em;

Result: This text is indented by 3em

The value of "text-indent" may be negative, but there may be implementation-specific limits.