how to center an element in center in css code example
Example 1: how to center an ing with block display
img{
display: block;
margin-left: auto;
margin-right: auto;
}
Example 2: centering css elements
// add to the parent element
.parent {
display: grid;
place-items: center;
}