text to the centre of div code example
Example 1: how to make a division center css
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
Example 2: html align right
<p style="text-align:right;">Example</p>
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
<p style="text-align:right;">Example</p>