Creating a mobile-optimized website using bootstrap 4. Currently struggling to vertically center an element within the available space. The element consists of a title with fixed size, a message, and 2 buttons in a div. Need to ensure it is vertically centered without any overflow.
Found a solution for Bootstrap 3, but the snippet doesn't work for Bootstrap 4. Another answer suggested using flexible box, but it doesn't work when there is only one component occupying the remaining space.
The element that needs to be vertically aligned is displayed through a jQuery call:
Any suggestions on how to vertically align the content of #wait-for-result-container in the middle?