Definition and Usage
The text-align
property specifies the horizontal alignment of text in an element.
Example
Set the text alignment for different <div> elements:
div.a {
text-align: center;
}
div.b {
text-align: left;
}
div.c {
text-align: right;
}
div.c {
text-align: justify;
}
Read on how to do it in this tutorial: https://www.w3schools.com/cssref/pr_text_text-align.ASP
Related Pages
CSS tutorial: CSS Text
HTML DOM reference: textAlign property