align in dib to center code example
Example 1: centering css elements
// add to the parent element
.parent {
display: grid;
place-items: center;
}
Example 2: how to make a division center css
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);