CSS text-indent Property

In CSS, the text-indent property is used to specify the indentation of the first line of each block of text. It can also accept negative values. That is, if the value is negative, the first line is indented to the left.

Horizontal spacing is measured from the left (or right, for right-to-left layout) edge of the content box of the containing block-level element.




Property Values

Value Description
length Defines a fixed indentation in px, pt, cm, em, and other units. The default value is zero. 
% Defines the indentation as a percentage of the parent element's width.
initial This property is set to its default value.
inherit This property is inherited from its parent element.

Supported Browsers

Property Chrome Firefox Safari Edge / IE Opera
text-indent 1.0 1.0 1.0 3.0 3.5