![]() |
VOOZH | about |
Bootstrap 5 Modal Optional sizes have different optional sizes, to be placed along with the modal-dialog class. This is used to create different sizes modals.
Bootstrap 5 Modal Optional sizes Classes:
Note: If no styles are specified, it will be treated as a default modal with a width of 500px.
Syntax:
<div class="modal-dialog modal-xl">
...
</div>
Example 1: In this example, we will learn about small modals.
Output:
Example 2: In this example, we will learn about Large modals.
Output:
References: https://getbootstrap.com/docs/5.0/components/modal/#optional-sizes