align right code example
Example 1: align div to the right
display:inline-block; float:right;
Example 2: center text in css
.class {
text-align: center;
}
Example 3: how to center align text in html
you just need to add this line of code in your tag(<p>; h1, h2, td etc):
<p align="center">sample text<p/>
Example 4: html align right
<p style="text-align:right;">Example</p>
Example 5: css text align center
body {
text-align: center;
}
Example 6: center align css
text-align: center;