Usage of text-align property in CSS

JavascriptWeb DevelopmentFront End Scripts

The text-align property is used to align the text of a document. Possible values are left, right, center, justify.


You can try to run the following code to implement text-align property:

      <p style = "text-align:right;">
         This will be right aligned.

      <p style = "text-align:center;">
         This will be center aligned.

      <p style = "text-align:left;">
         This will be left aligned.
Updated on 31-Jan-2020 06:40:17