How to divide a Twitter bootstrap modal into 2 parts

后端 未结 3 1018
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-29 06:32

\"enter

I have the following html

<         


        
3条回答
  •  我在风中等你
    2020-12-29 07:00

    Edit: This is just a pure CSS solution, look to the answers below if you want something more bootstraptic.


    You can use a bit of css to divide the modal body in two parts, as simple as if you do a page layout of two columns.

    ...
    
       
    ...

    and the CSS

    .first-column {
      width: 40%;
      float: left;
    }
    
    .second-column {
      width: 40%;
      float: right;
    }
    

    There is no need of using the grid system inside the modal, and probably the result will be worse probably if you try to fit it with spans.

提交回复
热议问题