css to keep child div tag at the middle of parent div tag code example
Example: text-align:center apply to parent div or child div
.parent {
width: 100%;
border: 1px solid blue;
text-align: center;
}
.child {
display: inline-block;
border: 1px solid red;
margin: 2px;
}