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

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

I tried the following:

   
30条回答
  •  無奈伤痛
    2020-11-27 09:31

    Preserve the responsive design, set the width to what you desire.

    .modal-content {
      margin-left: auto;
      margin-right: auto;
      max-width: 360px;
    }
    

    Keep it simple.

提交回复
热议问题