Bootstrap 4 モーダルサンプル 10



 <div class="container d-flex justify-content-center">
     <div class="row">
         <div class="col-md-6"> <button type="button" class="btn btn-lg btn-warning" data-toggle="modal" data-target="#myModal">Open Modal</button> </div>
 <div class="modal fade" id="myModal" role="dialog">
     <div class="modal-dialog">
         <div class="card">
             <div class="text-right cross"> <i class="fa fa-times"></i> </div>
             <div class="card-body text-center"> <img src="">
                 <h4>Phrase "Discovery" sent!</h4>
                 <p>Your phrase has been sent to nick's email. Once he takes action. you will be notified!</p>
 @import url(,300,700);

 body {
     background-color: #4CAF50;
     font-family: 'Calibri', sans-serif !important

 .mt-100 {
     margin-top: 100px

 .container {
     margin-top: 200px

 .card {
     position: relative;
     display: flex;
     width: 450px;
     flex-direction: column;
     min-width: 0;
     word-wrap: break-word;
     background-color: #fff;
     background-clip: border-box;
     border: 1px solid #d2d2dc;
     border-radius: 4px;
     -webkit-box-shadow: 0px 0px 5px 0px rgb(249, 249, 250);
     -moz-box-shadow: 0px 0px 5px 0px rgba(212, 182, 212, 1);
     box-shadow: 0px 0px 5px 0px rgb(161, 163, 164)

 .card .card-body {
     padding: 1rem 1rem

 .card-body {
     flex: 1 1 auto;
     padding: 1.25rem

 p {
     font-size: 14px

 h4 {
     margin-top: 18px

 .cross {
     padding: 10px;
     color: #4CAF50;
     cursor: pointer