center content in div container code example
Example 1: center a div in css
.container {
display: flex;
justify-content: center;
align-items: center;
}
Example 2: center text in div container
text-align: center
.container {
display: flex;
justify-content: center;
align-items: center;
}
text-align: center