Add dialogs to your site for lightboxes, user notifications, or completely custom content. Read the Official Bootstrap Documentation for a full list of instructions and other options.
Below is a static modal example (meaning its position and display have been overridden). Included are the modal header, modal body (required for padding), and modal footer (optional).
Display modal in the center of the screen by adding .modal-dialog-centered
to .modal-dialog
.
When backdrop is set to static, the modal will not close when clicking outside it. Click the button below to try it.
Another override is the option to pop up a modal that covers the user viewport, available via modifier classes that are placed on a .modal-dialog
.
Modals have three optional sizes, available via modifier classes to be placed on a .modal-dialog
.
For modals that simply appear rather than fade in to view, remove the .fade class from your modal markup.