The text-align-last property describes how the last line of a block or a line right before a forced line break is aligned when 'text-align' is set to 'justify'.

  • Initial valueauto
  • Applies toBlock containers
  • InheritedYes
  • MediaVisual
  • Computed valueSpecified value
  • AnimatableNo
  • CSS VersionCSS3
  • JavaScript
Formal syntax: auto | start | end | left | right | center | justify

text-align-last: auto;
text-align-last: start;
text-align-last: end;
text-align-last: left;
text-align-last: right;
text-align-last: center;
text-align-last: justify;
  • autoText is aligned like the other lines in the object, using the value of the text-align property.
  • startThe same as left if direction is left-to-right and right if direction is right-to-left.
  • endThe same as right if direction is left-to-right and left if direction is right-to-left.
  • leftText is aligned to the left.
  • rightText is aligned to the right.
  • centerThe text is centered within the line box.
  • justifyThe text is justified. Text should line up their left and right edges to the left and right content edges of the paragraph.
.class {
   text-align-last: right; 

Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.