horizontally centre in css code example
Example 1: centering css elements
// add to the parent element
.parent {
display: grid;
place-items: center;
}
Example 2: how to horizontal center a div in css
#inner {
width: 50%;
margin: 0 auto;
}