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