CSS text-align-last

The text-align-last property in CSS is used to specify how the last line of a block or inline element is aligned when the text-align property is set to justify. This property can be applied to block elements such as div or inline elements such as span.

The possible values for text-align-last are:

Result:

    
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla consequat quam id est sollicitudin, in convallis urna rutrum. Donec iaculis luctus tristique.

In the example above, the last line of the div is aligned to the start of the line, as specified by text-align-last: start;

It is important to note that the text-align-last property is not supported in Internet Explorer browser versions prior to IE11.