CSS Property: text-align-last
[this page | pdf | back links]
The CSS (CSS3) text-align-last property indicates how
the last line of text in an element should be aligned.
Valid property values
(other than inherit
and initial) are:
|
Value
|
Description
|
|
auto
|
(default value). Last
line is aligned left
|
|
center
|
Last line of text is
centred
|
|
end
|
Last line is aligned to
end of line (right if direction is left-to-right, left if direction is
right-to-left)
|
|
justify
|
Justifies last line of
text, i.e. stretches lines to encompass whole width (rarely how text is
formatted in practice)
|
|
left
|
Aligns last line of
text to left
|
|
start
|
Last line is aligned to
start of line (left if direction is left-to-right, right if direction is
right-to-left)
|
|
right
|
Aligns last line of
text to right
|
|
Default Value:
|
auto
|
|
JavaScript syntax:
|
e.g. object.style.textAlignLast="right"
|
|
Inherited:
|
Yes
|
|
Animatable:
|
No
|
NAVIGATION LINKS
Contents | Prev | Next | CSS Properties