CSS text indent Property
CSS text-indent Property
The text-indent property is used to specify the indentation of the first line in a text block. If the value is a negative value then the first line will be indented to the left if the value is negative.
Default Value:-
Its default value is 0.
Syntax:-
Its syntax is:- text-indent: length | initial | inherit;
Further Explanation:-
Value | Description |
---|---|
length | Defines a fixed indentation in px, em, etc. |
% | Defines the indentation in % of the width of the parent element. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |