centering things css code example
Example 1: centering css elements
// add to the parent element
.parent {
display: grid;
place-items: center;
}
Example 2: centering horizontally
div.center{display:block;margin:auto;width:50%;}
p.center{text-align:center;}