CSS text-align-last property
Description
CSS text-align-last property aligns the last line of a block container along the inline axis.
Syntax
text-align-last : start | end | left | right | center | justify | match-parent
Property values
startDefault
-
It aligns the content at the start of inline axis.
text-align-last: start;
end
-
It aligns the last line of the block container at the end of inline axis.
text-align-last: end;
left
-
It aligns the last line at the left side of line box.
text-align-last: left;
right
-
It aligns the last line of a block container at the right side.
text-align-last: right;
center
-
It aligns the last line at the center of inline axis.
text-align-last: center;
justify
-
It justifies the content according to the method specified by the text-justify i.e. the last line exactly fills the line axis.
text-align-last: justify;
Applicable to
It applies to block containers.
From web4college, the free CSS digger
#CSS digger
Was this article helpful?