XML technologies / CSS / Advanced websites with CSS / CSS property reference / text-align-last

(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)

The property text-align-last, which is not included in the CSS specification, describes the alignment of the last line of text in a block element whose text-align is set to justify.

Inherited: yes

See also: text-align

Values

The property text-align-last supports the following constants:

  • auto

  • center

  • justify

  • left

  • right

The constant auto displays the last line using the value declared for text-align.

Default value: auto

Compatibility

CSS version: not part of the CSS specification

Works only in Internet Explorer for Windows, version 5.5 and later.

Example

The following style rule right-aligns the last line of justified text in blockquote elements:

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

  

 

 

 

back to top