Modal components

Below is a staticmodal example (meaning its positionand displayhave been overridden). Included are the modal header, modal body (required for padding), and modal footer (optional). We ask that you include modal headers with dismiss actions whenever possible, or provide another explicit dismiss action.

Modal Scrolling

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.

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.

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.

Vertically centered

Add .modal-dialog-centeredto .modal-dialogto vertically center the modal.

Using the grid

Utilize the Bootstrap grid system within a modal by nesting .container-fluidwithin the .modal-body. Then, use the normal grid system classes as you would anywhere else.