align contenet center css code example
Example 1: css center
/* this will center all children within the parent element. */
.parent {
display: flex;
justify-content: center; /* horizontal */
align-items: center; /* vertical */
}
Example 2: how to make a division center css
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);