.container {align-items: center;display: flex;flex-direction: column;justify-content: center;}
.container {display: grid;place-content: center;}
.parent {position: relative;}.child {left: 50%;position: absolute;top: 50%;transform: translate(-50%, -50%);}