"Bootstrap square buttons"
Bootstrap 3.3.0 Snippet by kazu2012

<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 ----------> <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> <div class="container"> <div class="row"> <div class="col-lg-12"> <p> <a href="#" class="btn metro front back btn-sq-lg btn-primary"> <i class="fa fa-user fa-5x"></i><br/> Demo Primary <br>Button </a> <a href="#" class="btn metro front back btn-sq-lg btn-success"> <i class="fa fa-user fa-5x"></i><br/> Demo Success <br>Button </a> <a href="#" class="btn metro front back btn-sq-lg btn-info"> <i class="fa fa-user fa-5x"></i><br/> Demo Info <br>Button </a> <a href="#" class="btn metro btn-sq-lg btn-warning"> <i class="fa fa-user fa-5x"></i><br/> Demo Warning <br>Button </a> <a href="#" class="btn metro btn-sq-lg btn-danger"> <i class="fa fa-user fa-5x"></i><br/> Demo Danger <br>Button </a> <a href="#" class="btn metro btn-sq-lg btn-danger"> <i class="fa fa-user fa-5x"></i><br/> Demo Danger <br>Button </a> </p> </div> </div> <div class="row"> <div class="col-lg-12"> <p> <a href="#" class="btn btn-sq btn-primary"> <i class="fa fa-user fa-5x"></i><br/> Demo Primary <br>Button </a> <a href="#" class="btn btn-sq btn-success"> <i class="fa fa-user fa-5x"></i><br/> Demo Success <br>Button </a> <a href="#" class="btn btn-sq btn-info"> <i class="fa fa-user fa-5x"></i><br/> Demo Info <br>Button </a> <a href="#" class="btn btn-sq btn-warning"> <i class="fa fa-user fa-5x"></i><br/> Demo Warning <br>Button </a> <a href="#" class="btn btn-sq btn-danger"> <i class="fa fa-user fa-5x"></i><br/> Demo Danger <br>Button </a> </p> </div> </div> <div class="row"> <div class="col-lg-12"> <p> <a href="#" class="btn btn-sq-sm btn-primary"> <i class="fa fa-user fa-2x"></i><br/> Demo </a> <a href="#" class="btn btn-sq-sm btn-success"> <i class="fa fa-user fa-2x"></i><br/> Demo </a> <a href="#" class="btn btn-sq-sm btn-info"> <i class="fa fa-user fa-2x"></i><br/> Demo </a> <a href="#" class="btn btn-sq-sm btn-warning"> <i class="fa fa-user fa-2x"></i><br/> Demo </a> <a href="#" class="btn btn-sq-sm btn-danger"> <i class="fa fa-user fa-2x"></i><br/> Demo </a> </p> </div> </div> <div class="row"> <div class="col-lg-12"> <p> <a href="#" class="btn btn-sq-xs btn-primary"> <i class="fa fa-user fa-1x"></i><br/> </a> <a href="#" class="btn btn-sq-xs btn-success"> <i class="fa fa-user fa-1x"></i><br/> </a> <a href="#" class="btn btn-sq-xs btn-info"> <i class="fa fa-user fa-1x"></i><br/> </a> <a href="#" class="btn btn-sq-xs btn-warning"> <i class="fa fa-user fa-1x"></i><br/> </a> <a href="#" class="btn btn-sq-xs btn-danger"> <i class="fa fa-user fa-1x"></i><br/> </a> </p> </div> </div> </div>
.btn-sq-lg { width: 350px !important; height: 350px !important; line-height:29px !important; padding-top: 90px; overflow:visible !important; font-size:25px; margin-top:10px; margin-left:5px; perspective: 300px; -webkit-perspective: 300px; transition: 0.8s; } .metro .back { background-color: #61a84d; transform:rotateY(180deg); -webkit-transform:rotateY(180deg); } .metro .btn-sq-lg:hover .front { transform:rotateY(180deg); -webkit-transform:rotateY(180deg); } .metro .btn-sq-lg:hover .back { transform:rotateY(360deg); -webkit-transform:rotateY(360deg); } .btn-sq { width: 100px !important; height: 100px !important; font-size: 10px; } .btn-sq-sm { width: 50px !important; height: 50px !important; font-size: 10px; } .btn-sq-xs { width: 25px !important; height: 25px !important; padding:2px; } /* .btn05 { color: #fff; display: block; text-decoration: none; width: 200px; position: relative; perspective: 300px; -webkit-perspective: 300px; } .btn05 span { text-align: center; display: block; width: 200px; padding: 30px 0; background-color: #a7dd7d; position:absolute; top: 0; margin-top: -30px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: 0.8s; } .btn05 .back { background-color: #61a84d; transform:rotateY(180deg); -webkit-transform:rotateY(180deg); } .btn05:hover .front { transform:rotateY(180deg); -webkit-transform:rotateY(180deg); } .btn05:hover .back { transform:rotateY(360deg); -webkit-transform:rotateY(360deg); }

Related: See More


Questions / Comments: