text-align in css code example
Example 1: text-align css
.p{
text-align:center;
}
<div class="p">
<p style="text-align:center">HELLO</p>
</div>
Example 2: css text align right
body {
text-align: right;
}
Example 3: css text align left
body {
text-align: left;
}
Example 4: text align justify
text-align: justify;