Skip to content

CSS text-align

Placing the text alignment tag has several <div> “text-align”:

text-align: center

div.w {
  text-align: center;
}

text-align: left

div.x {
  text-align: left;
}

text-align: right

div.y {
  text-align: right;
}

text-align: justify

div.z {
  text-align: justify;
}

More text-align:

h2 {
    text-align: center;
}
p.one {
    text-align: right;
}

CSS text-align