css text align center

CSS
body {
  text-align: center;
}p{
    text-align:center;/*values: center, left, right, etc...*/
}<switch>
    h1 {
    text-align: center;
}

p.date {
    text-align: right;
}

 
p.main {
    text-align: justify;
} 
</Switch>    div.a {
  text-align: center;
}


    div.b {
  text-align: left;
}


    div.c {
  text-align: right;
}

div.c {
  text-align: 
    justify;
}  text-align:inherit;.class {
	text-align: center;
}
Source

Also in CSS: