How can I change the default width of a Twitter Bootstrap modal box?

后端 未结 30 2684
醉酒成梦
醉酒成梦 2020-11-27 08:38

I tried the following:

   
30条回答
  •  旧巷少年郎
    2020-11-27 09:16

    I solved it for Bootstrap 4.1

    Mix of previously posted solutions

    .modal-lg {
      max-width: 90% !important; /* desired relative width */
      margin-left:auto !important;
      margin-right:auto !important;
    }

提交回复
热议问题