1<!-- Button trigger modal -->
2<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalCenter">
3 Launch demo modal
4</button>
5
6<!-- Modal -->
7<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
8 <div class="modal-dialog modal-dialog-centered" role="document">
9 <div class="modal-content">
10 <div class="modal-header">
11 <h5 class="modal-title" id="exampleModalCenterTitle">Modal title</h5>
12 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
13 <span aria-hidden="true">×</span>
14 </button>
15 </div>
16 <div class="modal-body">
17 ...
18 </div>
19 <div class="modal-footer">
20 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
21 <button type="button" class="btn btn-primary">Save changes</button>
22 </div>
23 </div>
24 </div>
25</div>
1<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button>
2
3<!-- Modal -->
4<div id="myModal" class="modal fade" role="dialog">
5 <div class="modal-dialog">
6
7 <!-- Modal content-->
8 <div class="modal-content">
9 <div class="modal-header">
10 <button type="button" class="close" data-dismiss="modal">×</button>
11 <h4 class="modal-title">Modal Header</h4>
12 </div>
13 <div class="modal-body">
14 <p>Some text in the modal.</p>
15 </div>
16 <div class="modal-footer">
17 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
18 </div>
19 </div>
20
21 </div>
22</div>
1<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalId">
2 ---
3</button>
4
5<div class="modal fade" id="modalId">
6 <div class="modal-dialog" role="document">
7 <div class="modal-content">
8 <div class="modal-header">
9 <h5 class="modal-title">title</h5>
10 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
11 <span aria-hidden="true">×</span>
12 </button>
13 </div>
14 <div class="modal-body">
15
16 </div>
17 <div class="modal-footer">
18 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
19 <button type="submit" class="btn btn-primary">Save changes</button>
20 </div>
21 </div>
22 </div>
23</div>
1<div class="modal-body">
2 <div class="container-fluid">
3 <div class="row">
4 <div class="col-md-4">.col-md-4</div>
5 <div class="col-md-4 ml-auto">.col-md-4 .ml-auto</div>
6 </div>
7 <div class="row">
8 <div class="col-md-3 ml-auto">.col-md-3 .ml-auto</div>
9 <div class="col-md-2 ml-auto">.col-md-2 .ml-auto</div>
10 </div>
11 <div class="row">
12 <div class="col-md-6 ml-auto">.col-md-6 .ml-auto</div>
13 </div>
14 <div class="row">
15 <div class="col-sm-9">
16 Level 1: .col-sm-9
17 <div class="row">
18 <div class="col-8 col-sm-6">
19 Level 2: .col-8 .col-sm-6
20 </div>
21 <div class="col-4 col-sm-6">
22 Level 2: .col-4 .col-sm-6
23 </div>
24 </div>
25 </div>
26 </div>
27 </div>
28</div>