Search results
Use Bootstrap’s JavaScript modal plugin to add dialogs to your site for lightboxes, user notifications, or completely custom content.
The Modal plugin is a dialog box/popup window that is displayed on top of the current page: Click To Open Modal. Tip: Plugins can be included individually (using Bootstrap's individual "modal.js" file), or all at once (using "bootstrap.js" or "bootstrap.min.js").
Modal Size. Change the size of the modal by adding the .modal-sm class for small modals, .modal-lg class for large modals, or .modal-xl for extra large modals. Add the size class to the <div> element with class .modal-dialog:
For a tutorial about Modals, read our Bootstrap Modal Tutorial. Class. Description. Example. .modal. Creates a modal. Try it. .modal-content. Styles the modal properly with border, background-color, etc. Use this class to add the modal's header, body, and footer.
Use Bootstrap’s JavaScript modal plugin to add dialogs to your site for lightboxes, user notifications, or completely custom content.
Use Bootstrap’s JavaScript modal plugin to add dialogs to your site for lightboxes, user notifications, or completely custom content.
How to Create Modal Using Bootstrap? The following HTML code snippet shows the bootstrap model implementation by specifying various CSS classes on HTML elements. In this example, the modal header, modal body, and modal footer are included within the modal content.