text-align-last
Determines how the very last line of a block or a line right before a forced line break should be aligned. This is often used to ensure the last line of a justified paragraph is centered or left-aligned.
It is documented as part of the CSS Text specification.
Syntax
/* Usage Example */
p {
text-align: justify;
/* Explicitly centers the last line of the paragraph */
text-align-last: center;
}
/* Syntax */
text-align-last: auto;
text-align-last: start;
text-align-last: end;
text-align-last: left;
text-align-last: right;
text-align-last: center;
text-align-last: justify;
/* Global values */
text-align-last: inherit;
text-align-last: initial;
text-align-last: revert;
text-align-last: revert-layer;
text-align-last: unset;
text-align-last Browser support
Widely available
Since
2022 95% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2022.
47+
49+
16+
12+