Style textAlignLast Property
Style textAlignLast Property
The textAlignLast property is used to define how to align the last line of a text. It will only work if the text-align property is set to justify.
Syntax:-
Its syntax is:- object.style.textAlignLast OR object.style.textAlignLast = auto | left | right | center | justify | start | end | initial | inherit
Return:-
Its return is:- string having text-align-last property of an element
Further Explanation:-
Value | Description |
---|---|
auto | The last line is justified and aligned left. |
left | The last line is aligned to left. |
right | The last line is aligned to right. |
center | The last line is center-aligned. |
justify | The last line is justified as rest of lines. |
start | The last line is aligned at beginning of line. |
end | The last line is aligned at end of line. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |