Bootstrap 4 includes utilities for sizing . You can resize to 25/50/75/100% of the width of the page (I would like to see even more increments).
To use them, we will replace the modal-lg class. Both the default width and modal-lg use css max-width to control the modal width, so first add the mw-100 class to effectively disable max-width . Then just add the desired width class, for example, w-75 .
Note that you should put the mw-100 and w-75 classes in a div with the modal-dialog class, and not with the modal div, e.g.
<div class='modal-dialog mw-100 w-75'> ... </div>
kitsu.eb
source share