center both horizontally and vertically all elementsin a div code example
Example: center a div in css
.container {
display: flex;
justify-content: center;
align-items: center;
}
.container {
display: flex;
justify-content: center;
align-items: center;
}