In your code, for the modal-dialog div, add another class, modal-lg:
<div class="modal-dialog modal-lg">
Or if you wanna centre your modal dialog, use:
.modal-ku {
width: 750px;
margin: auto;
}
Answer from Praveen Kumar Purushothaman on Stack OverflowBootstrap
getbootstrap.com › docs › 4.2 › components › modal
Modal · Bootstrap
Embedding YouTube videos in modals requires additional JavaScript not in Bootstrap to automatically stop playback and more. See this helpful Stack Overflow post for more information. Modals have three optional sizes, available via modifier classes to be placed on a .modal-dialog.
Videos
Top answer 1 of 16
362
In your code, for the modal-dialog div, add another class, modal-lg:
<div class="modal-dialog modal-lg">
Or if you wanna centre your modal dialog, use:
.modal-ku {
width: 750px;
margin: auto;
}
2 of 16
59
The easiest way can be inline style on modal-dialog div :
<div class="modal" id="myModal">
<div class="modal-dialog" style="width:1250px;">
<div class="modal-content">
...
</div>
</div>
</div>
W3Schools
w3schools.com › bootstrap5 › bootstrap_modal.php
Bootstrap 5 Modal
By default, modals are "medium" in size (500px max-width).
W3Schools
w3schools.com › bootstrap4 › bootstrap_modal.asp
Bootstrap 4 Modals
By default, modals are "medium" in size.
BootstrapVue
bootstrap-vue.org › docs › components › modal
Modal | Components | BootstrapVue
Modals have three optional sizes, available via the prop size. These sizes kick in at certain breakpoints to avoid horizontal scrollbars on narrower viewports.
GitHub
github.com › mdbootstrap › bootstrap-modal-size
GitHub - mdbootstrap/bootstrap-modal-size: Responsive popup window sizing with Bootstrap 5. Modal width, modal height, fullscreen modal, large modal with lg & xl modal classes and more. · GitHub
Responsive popup window sizing with Bootstrap 5. Modal width, modal height, fullscreen modal, large modal with lg & xl modal classes and more. - mdbootstrap/bootstrap-modal-size
Author mdbootstrap
React Bootstrap
react-bootstrap.netlify.app › modals
Modals | React Bootstrap
You can specify a Bootstrap large or small modal by using the size prop.
cdnjs
cdnjs.com › home › libraries › bootstrap-modal-size
bootstrap-modal-size - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers
https://cdnjs.cloudflare.com/ajax/libs/bootstrap-modal-size/1.0.1/bootstrap-modal-size.rtl.min.css
KeenThemes
preview.keenthemes.com › html › keen › docs › base › modal
Customized Bootstrap Modals by KeenThemes
var elements = Array.prototype.slice.call(document.querySelectorAll("[data-bs-stacked-modal]")); if (elements && elements.length > 0) { elements.forEach((element) => { if (element.getAttribute("data-kt-initialized") === "1") { return; } element.setAttribute("data-kt-initialized", "1"); element.addEventListener("click", function(e) { e.preventDefault(); const modalEl = document.querySelector(this.getAttribute("data-bs-stacked-modal")); if (modalEl) { const modal = new bootstrap.Modal(modalEl); modal.show(); } }); }); }
Trimble
modus-react-bootstrap.trimble.com › components › modals
Modals | Trimble Modus React Bootstrap Developer Guide
You can specify a bootstrap large or small modal by using the "size" prop.These sizes kick in at certain breakpoints to avoid horizontal scrollbars on narrower viewports.