align all divs to the center css code example
Example 1: how to center a div
.container {
...
display: flex;
justify-content: center;
}
Example 2: how to center a div
margin:auto
.container {
...
display: flex;
justify-content: center;
}
margin:auto