center modal on screen bootstrap 4 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
Vertically centered
Add .modal-dialog-centered to .modal-dialog to vertically center the modal.