We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

-moz-text-align-last Redirect 1

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes.


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


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

text-align-last: inherit


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 left.
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.


div {
  text-align: justify;
  -moz-text-align-last: center;
  text-align-last: center;


Specification Status Comment
CSS Text Level 3
The definition of 'text-align-last' in that specification.
Working Draft  

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 35
WebKit bug 76173
12.0 (12.0)-moz 5.5 Not supported Not supported
WebKit bug 76173
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support Not supported
WebKit bug 76173
12.0 (12.0)-moz 6.0 Not supported Not supported
WebKit bug 76173

In Internet Explorer, the start and end values are not supported.

See also

Document Tags and Contributors

Last updated by: Sheppy,