How to center text in CSS
It is fairly easy to use CSS to center your texts. We can spend a lot of time and effort to clarify this subject but in reality this is not needed. Determine the text you would like to center and add the CSS property text-align: center; and you will immediately notice the text is perfectly centered in the middle. Not everyone is in favor of this centered text and therefore we would also like to introduce you text: justify; . Applying this piece of code will align your text at the left or the right side in order to create a symmetric view. Please find below the code for both CSS properties:
p{
text-align: center;
}
p{
text-align: justify;
}
text-align: center;
}
p{
text-align: justify;
}