centering in html
snippet in html

html how to center text

user4193

<p style="text-align:center;">Centered paragraph.</p>

centering in html

user5183

<style>
  element
  {
    text-align: center;
  }
</style>
-------------------------------------------------------------------------------
style.css
element
{
	text-align: center;
}

how to center text in html

user1345

<p><center>YourText</center></p>

align centre

user9530

.headerTwoDiv{
			margin:1% auto;
			margin-right: auto; margin-left: auto; width: 21%; 
			padding-top: 11px;
		}