how aligin center div code example
Example 1: how to center a div
.container {
...
display: flex;
justify-content: center;
}
Example 2: how to center a div
<div class="container">
<div class="child"></div>
</div>
.container {
...
display: flex;
justify-content: center;
}
<div class="container">
<div class="child"></div>
</div>