VOOZH about

URL: https://www.geeksforgeeks.org/css/how-to-align-the-last-line-of-a-paragraph-element-to-the-right-using-css/

⇱ Align the last line of a paragraph element to the right using CSS - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Align the last line of a paragraph element to the right using CSS

Last Updated : 22 May, 2026

The text-align-last property in CSS is used to define the alignment of the last line of a text block. It helps in improving the appearance of paragraphs by aligning the final line separately from the rest of the content.

  • text-align-last: right; aligns the last line of text to the right side.
  • It works on multi-line text elements like <p> tags.
  • The property supports values such as left, right, center, and justify.

Syntax:

text-align-last: right

Example:

Comment
Article Tags: