"Bootstrap Credit Card Form"
Bootstrap 3.3.0 Snippet by zaferbas

<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 class="col-md-12 text-center"> <h2>Bootstrap Credit Card Form </h2> <h6>Based on original idea by <a href="http://www.designbootstrap.com/">DesignBootstrap.com</a> </h6> <br /> </div> </div> <div class="row"> <div class="col-md-4 col-md-offset-4"> <div class="credit-card-div"> <div class="panel panel-default"> <div class="panel-heading"> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> <h5 class="text-muted"> Credit Card Number</h5> </div> <div class="col-md-3 col-sm-3 col-xs-3"> <input type="text" class="form-control" placeholder="0000" /> </div> <div class="col-md-3 col-sm-3 col-xs-3"> <input type="text" class="form-control" placeholder="0000" /> </div> <div class="col-md-3 col-sm-3 col-xs-3"> <input type="text" class="form-control" placeholder="0000" /> </div> <div class="col-md-3 col-sm-3 col-xs-3"> <input type="text" class="form-control" placeholder="0000" /> </div> </div> <div class="row "> <div class="col-md-3 col-sm-3 col-xs-3"> <span class="help-block text-muted small-font"> Expiry Month</span> <input type="text" class="form-control" placeholder="MM" /> </div> <div class="col-md-3 col-sm-3 col-xs-3"> <span class="help-block text-muted small-font"> Expiry Year</span> <input type="text" class="form-control" placeholder="YY" /> </div> <div class="col-md-3 col-sm-3 col-xs-3"> <span class="help-block text-muted small-font"> CCV</span> <input type="text" class="form-control" placeholder="CCV" /> </div> <div class="col-md-3 col-sm-3 col-xs-3"> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAGp0lEQVR4nO1YPY8cxxF9NdOzPbN7JG/PkuiA9gVHGDBlKiVghfoFBMhAkAAJzvkrqIgBI8b8AWcSTu3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MZDYAFgNePHz9u/99gtmM7tmM7tuPHMf4DjEOG/uidi0QAAAAASUVORK5CYII=" class="img-rounded" /> </div> </div> <div class="row "> <div class="col-md-12 pad-adjust"> <input type="text" class="form-control" placeholder="Name On The Card" /> </div> </div> <div class="row"> <div class="col-md-12 pad-adjust"> <div class="checkbox"> <label> <input type="checkbox" checked class="text-muted"> Save details for fast payments. <a href="#">Learn More</a> </label> </div> </div> </div> <div class="row "> <div class="col-md-6 col-sm-6 col-xs-6 pad-adjust"> <input type="submit" class="btn btn-danger" value="CANCEL" /> </div> <div class="col-md-6 col-sm-6 col-xs-6 pad-adjust"> <input type="submit" class="btn btn-warning btn-block" value="PAY NOW" /> </div> </div> </div> </div> </div> <!-- CREDIT CARD DIV END --> </div> </div> </div>
.credit-card-div span { padding-top:10px; } .credit-card-div img { padding-top:30px; } .credit-card-div .small-font { font-size:9px; } .credit-card-div .pad-adjust { padding-top:10px; }

Related: See More


Questions / Comments: