boostrap 4 modal

Solutions on MaxInterview for boostrap 4 modal by the best coders in the world

showing results for - "boostrap 4 modal"
Leon
25 Aug 2019
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="exampleModalLongTitle">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>
Naim
26 Jan 2018
1<!-- Button trigger modal -->
2<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
3  Launch demo modal
4</button>
5
6<!-- Modal -->
7<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
8  <div class="modal-dialog" role="document">
9    <div class="modal-content">
10      <div class="modal-header">
11        <h5 class="modal-title" id="exampleModalLabel">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>
Claudia
13 Sep 2019
1<!-- Button to Open the Modal -->
2<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">
3  Open modal
4</button>
5
6<!-- The Modal -->
7<div class="modal" id="myModal">
8  <div class="modal-dialog">
9    <div class="modal-content">
10
11      <!-- Modal Header -->
12      <div class="modal-header">
13        <h4 class="modal-title">Modal Heading</h4>
14        <button type="button" class="close" data-dismiss="modal">&times;</button>
15      </div>
16
17      <!-- Modal body -->
18      <div class="modal-body">
19        Modal body..
20      </div>
21
22      <!-- Modal footer -->
23      <div class="modal-footer">
24        <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
25      </div>
26
27    </div>
28  </div>
29</div>
Ike
28 Nov 2016
1<div class="modal" tabindex="-1" role="dialog">
2  <div class="modal-dialog" role="document">
3    <div class="modal-content">
4      <div class="modal-header">
5        <h5 class="modal-title">Modal title</h5>
6        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
7          <span aria-hidden="true">×</span>
8        </button>
9      </div>
10      <div class="modal-body">
11        <p>Modal body text goes here.</p>
12      </div>
13      <div class="modal-footer">
14        <button type="button" class="btn btn-primary">Save changes</button>
15        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
16      </div>
17    </div>
18  </div>
19</div>
similar questions
queries leading to this page
boostrap 4 modal