How to change the default width of the Bootstrap mode box
Most people do not understand the knowledge points of this article "how to change the default width of Bootstrap mode box", so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to change the default width of Bootstrap mode box" article.
Answer: set the width of the. modal-dialog element
By default, Bootstrap modal comes in four different sizes-small, default, large and large. However, if you still want to customize the size of the modal window, you can override the class's CSSwidth property. Modal-dialog to resize the default mode.
Similarly, you can override the features of width. Modal-sm,.modal-lg and .modal-xl classes adjust small, large, and super-large modal dialogs, respectively.
The following example shows you how to change the width of the default mode.
Try this code for example »
Resizing the Bootstrap Modal
@ media screen and (min-width: 676px) {
. modal-dialog {
Max-width: 600px; / * New width for default modal * /
}
}
The above is the content of this article on "how to change the default width of Bootstrap mode box". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.