HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

text-align-last

Description

The text-align-last property for CSS describes how the last line of a block or a line right before a forced line break is aligned.

Syntax

CSS

text-align-last: value;

JS

object.style.textAlignLast = "value";

Values

<'text-align-last'> = auto | start | end | left | right | center | justify | match-parent
auto

Automatically specified by the user agent.

start

Inline-level content is aligned to the start edge of the line box.

end

Inline-level content is aligned to the end edge of the line box.

left

Inline-level content is aligned to the line left edge of the line box.

right

Inline-level content is aligned to the line right edge of the line box.

center

Inline-level content is centered within the line box.

justify

Text is justified according to the method specified by the text-justify property, in order to exactly fill the line box.

match-parent

Behaves the same as inherit except that an inherited value of start or end is interpreted against the parent's direction value and results in a computed value of either left or right.

Initial

auto

Examples

1 · auto

2 · start

3 · end

4 · left

5 · right

6 · center

7 · justify

8 · match-parent

9 · JS