the correct way to center element in css code example Example: how to center anything inside your container display: grid; place-items: center; height: 100vh;