html { height: 100%; } body { height: 100%; margin: 0; display: flex; justify-content: center; align-items: center; }