Static Modal Example

Below is a static modal example.

Basic Modal

Toggle a working modal demo by clicking the button below. It will slide down and fade in from the top of the page.

Scrolling long content

When modals become too long for the user’s viewport or device, they scroll independent of the page itself. Try the demo below to see what we mean.

Scrolling long content in Modal Body

You can also create a scrollable modal that allows scroll the modal body by adding .modal-dialog-scrollable to .modal-dialog.

Vertically centered

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

Optional sizes

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.

Side Modal Right

Drawer kind modal with right slide in animation. Applies .modal-right to .modal.

Side Modal Left

Add .modal-left to .modal to make it slide from left.