CSS3 property is used to center text code example
Example 1: text align css
p{
text-align:center;/*values: center, left, right, etc...*/
}
Example 2: text align justify
text-align: justify;
p{
text-align:center;/*values: center, left, right, etc...*/
}
text-align: justify;