Basic Modal

Basic Bootstrap Modal Example

Static Backdrop

When backdrop is set to static, the modal will not close when clicking outside it.

Scrolling Long Content

When modals are too long to fit into a single screen, they will scroll vertically but remain independent of the page itself.

Scrollable modal content

You can add a .modal-dialog-scrollable to the .modal-dialog to make the content scrollable.

Vertically centered

Add .modal-dialog-centered to .modal-dialog to vertically center the modal.

Varying Modal Content

Have different triggers for the same modal with slightly different contents.

Toggle between Modals

Toggle between multiple modals with some clever placement of the data-bs-target and data-bs-toggle attributes.

Modal Sizing

Determine the size of your modal with modal-sm, modal-lg, modal-xl or leaving it emoty for the defaullt size

Fullscreen Modal

Modal that covers the user viewport.

Buy Now