English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
text-align-The 'last' CSS property specifies how to align the last line of text. Note:text-align The property only takes effect in text-The 'align' property only takes effect when set to 'justify'.
The table below provides usage instructions and version history for this property, as well as the syntax for using this property in JavaScript scripts.
Default Value: | auto |
---|---|
Applies To: | Block Container |
Inheritance: | Yes |
Animatable: | No.Please see Animation Attribute. |
Version: | CSS3the new feature |
JavaScript Syntax: | object.style.textAlignLast="center" |
The syntax of this attribute is as follows:
text-align-last: auto | start | end | left | right | center | justify | initial | inherit
The following examples demonstrate how to use text-align-last attribute.
p { -moz-text-align-last: right; /* Firefox */ text-align-last: right; }Test See‹/›
The following table describes the values of this attribute.
text-align-The compatibility of last attribute in browsers, the numbers in the table below represent the minimum version number of browsers that support this attribute; all mainstream browsers support this attribute.
|
Please refer to the following tutorials:CSS Alignment.
Related Attributes:text-align,text-indent,text-justify.