/*add this directly to the element*/ .make_it_horizontal_aligned { display: flex; align-items: center; }