Modal
Use Bootstrap’s JavaScript modal
plugin to add dialogs to your site for lightboxes, user notifications, or completely custom content.
⟢ How it works ⤵
Modals use
position: fixed
, which can sometimes be a bit particular about its rendering. Whenever possible, place your modal HTML in a top-level position to avoid potential interference from other elements. You’ll likely run into issues when nesting a.modal
within another fixed element.You can also create a scrollable modal that allows scrolling the modal body by adding
.modal-dialog-scrollable
to.modal-dialog
.
Last updated