"Modified Modal Buttons"
Bootstrap 3.3.0 Snippet by gabycampagna

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div id="myModal" class="modal fade in"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <a class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span></a> <h4 class="modal-title">Modal Heading</h4> </div> <div class="modal-body"> <h4>Text in a modal</h4> <p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p> </div> <div class="modal-footer"> <div class="btn-group"> <button class="btn btn-danger" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> Cancel</button> <button class="btn btn-primary"><span class="glyphicon glyphicon-check"></span> Save</button> </div> </div> </div><!-- /.modal-content --> </div><!-- /.modal-dalog --> </div><!-- /.modal --> <a data-toggle="modal" href="#myModal" class="btn btn-primary">Launch demo modal</a> </div> </div>
.modal .modal-header { border-bottom: none; position: relative; } .modal .modal-header .btn { position: absolute; top: 0; right: 0; margin-top: 0; border-top-left-radius: 0; border-bottom-right-radius: 0; } .modal .modal-footer { border-top: none; padding: 0; } .modal .modal-footer .btn-group > .btn:first-child { border-bottom-left-radius: 0; } .modal .modal-footer .btn-group > .btn:last-child { border-top-right-radius: 0; }

Related: See More


Questions / Comments: