alignment in word code example
Example 1: centre align in position absolute
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
Example 2: text align center
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;