A flex container with both the justify-content and the align-items properties ser to center will align the item(s) in the center (in both axis).