Style textIndent Property
Style textIndent Property
The textIndent property is used to either set or return the indentation of the first line of text. In this. if the value is set to negative then the first line will be indented to the left.
Syntax:-
Its syntax is:- object.style.textIndent OR object.style.textIndent = length | % | initial | inherit
Return:-
Its return is:- string having indentation of the first line of text in the element
Further Explanation:-
Value | Description |
---|---|
length | Defines indentation in length units. |
% | Defines indentation in % of width of parent element. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |