.parent__div { display: flex; justify-content: center; align-items: center; }
You don't have to style the child at all.