css text align center code example
Example 1: how to make a division center css
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
Example 2: text align css
p{
text-align:center;/*values: center, left, right, etc...*/
}
Example 3: text align center
text-align: center;
Example 4: css text align center
body {
text-align: center;
}
Example 5: css text align left
body {
text-align: left;
}
Example 6: text align justify
text-align: justify;