Export (0) Print
Expand All

-ms-text-align-last property

Specifies a value that indicates how to align the last line or only line of text in the specified object.

CSS Text Level 3, Section 8.1Internet Explorer 9

 

Syntax

-ms-text-align-last: auto | center | inherit | justify | left | right

Property values

auto

Default. Text is aligned like the other lines in the object, using the value of the text-align property.

center

Text is centered.

inherit

Text is aligned like the text in the parent object.

justify

Text is justified.

left

Text is aligned to the left.

right

Text is aligned to the right.

CSS information

Applies Toblock containers
Mediavisual
Inheritedtrue
Initial Valueauto

Standards information

Remarks

Windows Internet Explorer 8. The -ms-text-align-last property is an extension to Cascading Style Sheets (CSS), and can be used as a synonym for the text-align-last property in IE8 Standards mode and higher.

Examples

The following example shows an embedded style rule that justifies all the lines in the document's p elements. This is commonly found in East Asian typography.


p.DistributeAllLines {
   text-align: justify;
   text-justify: distribute;                 
   text-align-last: justify;
}

See also

CSSStyleDeclaration
currentStyle
runtimeStyle
style

 

 

Show:
© 2014 Microsoft