css center of page align code example Example: center on page css body { display: grid; place-items: center; height: 100vh; margin: 0; }