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 element to be right-aligned:

blockquote {
  text-align: justify;
  text-align-last: right;
}

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.14.63