Bootstrap modals come in 4 sizes, You have the default, small, large and extra-large. The default size is closer to small and often at times in usage feels very restricted in its width. Considering the whole page can be used for content yet the modal pops up and uses less than 25% of the width.
The small modal has a max-width of 300px, default is 500px, large is 800px and extra-large has a max-width of 1140px.
Using the default Bootstrap classes to achieve a wider modal rather than just setting the max-width in CSS means that it will be responsive at different frame sizes.
Use modal-lg beside modal-dialog for a wider modal, modal-xl for a really wide modal or modal-sm for a smaller modal.
Example:
<div class="modal-dialog modal-lg">
Or a working example at CodePen.
A drained and empty Kennington reservoir images from a drone in early July 2024. The…
Merrimu Reservoir from drone. Click images to view larger.
Some early September spring shots from a bushwalk, It is still too early for wildflowers.
I recently needed to clone over a smaller NVMe to a 2TB SK Hynix Platinum…
If you ever needed a simple solution in Laravel to delete an entire directory and…
How to enforce only one user to register or be registered in a Laravel web…