Toggle a working modal demo by clicking the button below. It will slide down and fade in from the top of the page
You can disable the backdrop by adding data-bs-backdrop="false"
to .modal-dialog
When modals become too long for the user’s viewport or device, they scroll independent of the page itself. You can also create a scrollable modal that allows scroll the modal body by adding .modal-dialog-scrollable
to .modal-dialog
Add .modal-dialog-centered
to .modal-dialog
to vertically center the modal.
Modals have three optional sizes, available via modifier classes to be placed on a .modal-dialog
. These sizes kick in at certain breakpoints to avoid horizontal scrollbars on narrower viewports..
For modals that simply appear rather than fade in to view, remove the .fade
class from your .modal
element