text-align-last CSS property specifies how the last line of a block or a line right before a forced line break is aligned when
The following table summarizes the usages context and the version history of this property.
|No. See animatable properties.
|New in CSS3
The syntax of the property is given with:
The example below shows the
text-align-last property in action.
ExampleTry this code »
-moz-text-align-last: right; /* Firefox */
text-align-last: right; /* Standard syntax */
The following table describes the values of this property.
|The last line is aligned per the value of the
text-align property, unless the
text-align is set to
justify. This is default value.
|Same as left if direction is left-to-right and right if direction is right-to-left.
|Same as right if direction is left-to-right and left if direction is right-to-left.
|The last line is aligned to the left.
|The last line is aligned to the right.
|The last line is center-aligned.
|The last line is justified like the other lines in the block.
|Sets this property to its default value.
|If specified, the associated element takes the computed value of its parent element
text-align-last property is supported in all major modern browsers.
See tutorial on: CSS Alignment.