CSS TEXT ALIGNMENT code example
Example 1: text-align css
.p{
text-align:center;
}
<div class="p">
<p style="text-align:center">HELLO</p>
</div>
Example 2: text align css
p{
text-align:center;/*values: center, left, right, etc...*/
}
Example 3: css text align center
body {
text-align: center;
}
Example 4: css text align right
body {
text-align: right;
}
Example 5: css text align left
body {
text-align: left;
}