.wrapper { align-items: center; border: solid 1px black; display: flex; height: 150px; justify-content: center; } .child { background-color: orange; height: 50px; width: 50px; }