Creating a full-screen modal value is different in the latest Bootstrap 4 than in the previous answer for Bootstrap 3.
.modal-full { min-width: 100%; margin: 0; } .modal-full .modal-content { min-height: 100vh; }
Then add the modal-full class to the modal:
<div class="modal" id="myModal" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog modal-full" role="document"> <div class="modal-content"> ... </div> </div> </div>
Demo : Bootstrap 4 Full Screen Modal
source share