CSS text align last Property
CSS text-align-last Property
The text-align-last property is used to specify how to align the last line of a text. It sets the alignment for all last lines within the selected element.
Default Value:-
Its default value is auto.
Syntax:-
Its syntax is:- text-align-last: auto | left | right | center | justify | start | end | initial | inherit;
Further Explanation:-
Value | Description |
---|---|
auto | The last line is justified and aligned left. |
left | The last line is aligned to the left. |
right | The last line is aligned to the right. |
center | The last line is center-aligned. |
justify | The last line is justified like the rest of the lines. |
start | The last line is aligned at the beginning of the line. |
end | The last line is aligned at the end of the line. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |