B.108. text-align-last

This nonstandard property, supported by Internet Explorer for Windows version 5.5 or later, lets you specifically set the alignment of the last line of text within a block element whose text-align property is set to justify.

This property is ignored when the text-align property is not set to justify.

Inherited: Yes

See also: Section B.107text-align

B.108.1. Value

This property supports the following constant values:

  • auto

  • center

  • justify

  • left

  • right

auto allows the last line to reflect the alignment set by the text-align property.

Initial value: auto

B.108.2. Compatibility

CSS Version: n/a

Supported by Internet Explorer for Windows version 5.5 or later only.

B.108.3. Example

This style rule causes the last line of a blockquote ...

Get HTML Utopia: Designing Without Tables Using CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.