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