css put something in middle code example
Example 1: center a div in css
.container {
display: flex;
justify-content: center;
align-items: center;
}
Example 2: align div to center of screen
div.the-center-div {
margin: 0 auto;
}
.container {
display: flex;
justify-content: center;
align-items: center;
}
div.the-center-div {
margin: 0 auto;
}