Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Bootstrap Classic Confirmation Modal</title> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto|Varela+Round"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script> <style> body { font-family: 'Varela Round', sans-serif; } .modal-confirm { color: #636363; width: 550px; } .modal-confirm .modal-content { padding: 20px; border-radius: 5px; border: none; } .modal-confirm .modal-header { padding: 0 15px; border-bottom: none; position: relative; } .modal-confirm h4 { display: inline-block; font-size: 26px; } .modal-confirm .close { position: absolute; top: -5px; right: -5px; } .modal-confirm .modal-body { color: #999; } .modal-confirm .modal-footer { background: #ecf0f1; border-color: #e6eaec; text-align: right; margin: 0 -20px -20px; border-radius: 0 0 5px 5px; } .modal-confirm .btn { color: #fff; border-radius: 4px; transition: all 0.4s; border: none; padding: 8px 20px; outline: none !important; } .modal-confirm .btn-info { background: #b0c1c6; } .modal-confirm .btn-info:hover, .modal-confirm .btn-info:focus { background: #92a9af; } .modal-confirm .btn-danger { background: #f15e5e; } .modal-confirm .btn-danger:hover, .modal-confirm .btn-danger:focus { background: #ee3535; } .modal-confirm .modal-footer .btn + .btn { margin-left: 10px; } .trigger-btn { display: inline-block; margin: 100px auto; } </style> </head> <body> <div class="text-center"> <!-- Button HTML (to Trigger Modal) --> <a href="#myModal" class="trigger-btn" data-toggle="modal">Click to Open Confirm Modal</a> </div> <!-- Modal HTML --> <div id="myModal" class="modal fade"> <div class="modal-dialog modal-confirm"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Confirmation</h4> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> </div> <div class="modal-body"> <p>Are you sure you want to delete your account? This action cannot be undone and you will be unable to recover any data.</p> </div> <div class="modal-footer"> <a href="#" class="btn btn-info" data-dismiss="modal">Cancel</a> <a href="#" class="btn btn-danger">Yes, delete it!</a> </div> </div> </div> </div> </body> </html>