CSS Text Justification: Two Methods

In CSS, there are two common methods to achieve text justification on both ends:

  1. justify text alignment
p {
  text-align: justify;
}
  1. Align the text justified at the last line.
  2. alignment of the last line
  3. 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.

bannerAds