Home·CSS properties

text-align-last

Text

Sets how only the last line of a paragraph is aligned.

How to write ittext-align-last: auto;
Common valuesauto, left, center, right, justify
InheritedYes — children receive it
CategoryText

How to read this

  • An inherited property only needs writing once on the parent — every child picks it up. Most text properties work this way.
  • A shorthand resets whatever you leave out. Writing background: red alone also wipes a background image you set earlier.
  • When rules collide, the more specific selector wins; only when specificity ties does source order decide.
  • Animate transform and opacity for smoothness. Changing width or top forces the layout to be recalculated.

Frequently asked questions

Q. What is the CSS text-align-last property?

Sets how only the last line of a paragraph is aligned.

Q. How do you write text-align-last?

As text-align-last: auto; Common values include auto, left, center, right.

Q. Is text-align-last inherited?

Yes. Set it once on the parent and every child uses the same value without repeating it.

Q. What group does text-align-last belong to?

The text group.

Properties in the same group

Reference docs