<p style="text-align: center">this is centered</p>
<p style="text-align:center;">Centered paragraph.</p>
<style> element { text-align: center; } </style> ------------------------------------------------------------------------------- style.css element { text-align: center; }
<!-- use the center tag --> <center> <!-- your code --> </center>
.headerTwoDiv{ margin:1% auto; margin-right: auto; margin-left: auto; width: 21%; padding-top: 11px; }
<p><center>YourText</center></p>