centering a div in css using place-item code example Example: html center body body { max-width: max-content; margin: auto; }