"Button group square"
Bootstrap 3.3.0 Snippet by cieniu

<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 ----------> <!-- Button group square bootstrap by Cieniu http://cieniu.pl --> <div class="container"> <div class="row"> <h2>Button group square bootstrap <code>.btn-group-square</code> example by <a target="_blank" href="http://cieniu.pl">Cieniu</a></h2> </div> <div class="row"> <!-- 4 buttons example --> <div class="col-md-3"> <div class="btn-group-square"> <div class="row"> <div class="col-md-6"> <a class="btn btn-primary btn-block">Button</a> </div> <div class="col-md-6"> <a class="btn btn-info btn-block">Button</a> </div> </div> <div class="row"> <div class="col-md-6"> <a class="btn btn-danger btn-block">Button</a> </div> <div class="col-md-6"> <a class="btn btn-warning btn-block">Button</a> </div> </div> </div> </div> </div> <br> <div class="row"> <!-- 9 buttons example --> <div class="col-md-4"> <div class="btn-group-square"> <div class="row"> <div class="col-md-4"> <a class="btn btn-primary btn-block">Button</a> </div> <div class="col-md-4"> <a class="btn btn-info btn-block">Button</a> </div> <div class="col-md-4"> <a class="btn btn-warning btn-block">Button</a> </div> </div> <div class="row"> <div class="col-md-4"> <a class="btn btn-danger btn-block">Button</a> </div> <div class="col-md-4"> <a class="btn btn-warning btn-block">Button</a> </div> <div class="col-md-4"> <a class="btn btn-danger btn-block">Button</a> </div> </div> <div class="row"> <div class="col-md-4"> <a class="btn btn-primary btn-block">Button</a> </div> <div class="col-md-4"> <a class="btn btn-info btn-block">Button</a> </div> <div class="col-md-4"> <a class="btn btn-warning btn-block">Button</a> </div> </div> </div> </div> </div> </div>
.btn-group-square > .row{ padding: 0 2px 2px; } .btn-group-square .row > div{ padding-left: 1px; padding-right: 1px; }

Related: See More


Questions / Comments: