Easy Tutorial
❮ Jsref Foreach Event Onabort ❯

textAlignLast Property

Style Object

Example

Align the last line of the paragraph to the right:


Definition and Usage

The textAlignLast property specifies how to align the last line of text.

Note: The textAlignLast property only works when the text-align property is set to "justify".


Browser Support

Only Internet Explorer supports the textAlignLast property.

Firefox supports an alternative property, MozTextAlignLast.

Internet Explorer does not support the "start" and "end" values.


Syntax

Return the textAlignLast property:

Set the textAlignLast property:

Property Values

Value Description
auto Default value. The last line is adjusted and aligned to the left.
left The last line is aligned to the left.
right The last line is aligned to the right.
center The last line is centered.
justify The last line is adjusted to be justified.
start The last line is aligned at the start of the line (left if text-direction is left-to-right, right if text-direction is right-to-left).
end The last line is aligned at the end of the line (right if text-direction is left-to-right, left if text-direction is right-to-left).
initial Sets this property to its default value. See initial
inherit Inherits this property from its parent element. See inherit

Technical Details

Default value: auto
Return value: A string, representing the text-align-last property of the element.
--- ---
CSS version CSS3
--- ---

Related Articles

CSS Reference: text-align-last Property


Style Object

❮ Jsref Foreach Event Onabort ❯