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