modal-aligned bootstrap 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.