bootstrap 4 modal center horizontally and vertically code example
Example 1: bootstrap modal center vertically
Vertically centered
Add .modal-dialog-centered to .modal-dialog to vertically center the modal.
Example 2: bootstrap modal center