"Modified Modal Buttons"
Bootstrap 3.0.1 Snippet by matejkr

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.1/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" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <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" id="myModalLabel">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">Cancel</button> <button class="btn btn-primary">Save changes</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: