CSS Text Justification: Two Methods
In CSS, there are two common methods to achieve text justification on both ends:
- justify text alignment
p {
text-align: justify;
}
- Align the text justified at the last line.
- alignment of the last line
- alignment of text
p {
text-align: justify;
text-align-last: justify;
}
Please note that these two methods may not be supported in some older versions of browsers, so compatibility testing should be conducted before use.