text-align-last

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

Example

Initial value auto
Applies to block containers

Syntax

  
text-align-last: right;
  

Values

The affected line is aligned per the value of text-align, unless text-align is justify, in which case the effect is the same as setting text-align-last to start.
The same as left if direction is left-to-right and right if direction is right-to-left.
The same as right if direction is left-to-right and left if direction is right-to-left.
The inline contents are aligned to the left edge of the line box.
The inline contents are aligned to the right edge of the line box.
The inline contents are centered within the line box.
The text is justified. Text should line up their left and right edges to the left and right content edges of the paragraph.

Browser support

text-align-last4712495.534

We use cookies to improve your experience. Learn more in our Privacy policy.

×