.padre { height: 150px; display: flex; justify-content: center; align-items: center; } .hijo { background: red; width: 120px; }