aligning div to center code example
Example 1: css center image
.center {
display: block;
margin-left: auto;
margin-right: auto;
}
Example 2: div align center
.center {
text-align: center;
}
// or
<div style="text-align:center">
</div>
Example 3: how to center a div
<div class="container">
<div class="child"></div>
</div>