1 out of 2 rated this helpful - Rate this topic

-ms-text-align-last property

Gets or sets 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.1

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.


<style>
    p.DistributeAllLines { text-align: justify;
                           text-justify: distribute;                             
                           text-align-last: justify }
</style>

See also

CSSStyleDeclaration
currentStyle
runtimeStyle
style

 

 

Send comments about this topic to Microsoft

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.