Which Bootstrap utility class is used for changing the text alignment?

  • text-left
  • text-center
  • text-right
  • text-justify
In Bootstrap, the class text-center is used to align text in the center. It sets the text-align property to center, providing a simple way to horizontally center text within its parent element. Other classes like text-left, text-right, and text-justify are used for left alignment, right alignment, and justified text, respectively.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *