HTML align:center code example
Example 1: centre align image in div
body {
margin: 0;
}
#over img {
margin-left: auto;
margin-right: auto;
display: block;
}
Example 2: how to center text in html
text-align: center;
Example 3: how to center a html header
h1{text-align: center;}
Example 4: align centre
.headerTwoDiv{
margin:1% auto;
margin-right: auto; margin-left: auto; width: 21%;
padding-top: 11px;
}