Style textAlignLast Property
Align the last line of a pragraph to the right:
Definition and Usage
The textAlignLast property specifies how to align the last line of a text.
Note: The textAlignLast property will only work for elements with the text-align property set to "justify".
Note: The values "start" and "end" are not supported in Internet Explorer.
Return the textAlignLast property:
Set the textAlignLast property:
|auto||Default value. 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 as the rest of the lines|
|start||The last line is aligned at the beginning of the line (left if the text-direction is left-to-right, and right is the text-direction is right-to-left)|
|end||The last line is aligned at the end of the line (right if the text-direction is left-to-right, and left is the text-direction is right-to-left)|
|initial||Sets this property to its default value. Read about initial|
|inherit||Inherits this property from its parent element. Read about inherit|
|Return Value:||A String, representing the text-align-last property of an element|
CSS reference: text-align-last property