"Fancy Bootstrap Checkboxes"
Bootstrap 3.2.0 Snippet by comandor

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.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 ]"> <h2>Bootstrap Checkbox that work with <a href="http://drupal.org/" target="_blank">Drupal 7</a></h2> <p>My latest project needed some checkboxes that worked nicely with Drupal 7. Use the Theme picker above here to check out what the checkboxes look like in the different themes.</p> </div> <div class="form-item form-item-public-checkbox-info form-type-checkbox checkbox btn btn-default "> <label class="control-label " for="ed1091e3-6217-45f9-aa26-8820ca5f632a"> <input class="btn btn-default form-checkbox" type="checkbox" id="ed1091e3-6217-45f9-aa26-8820ca5f632a" name="public-checkbox-info" value="1"> Published </label> </div> </di>
.form-group input[type="checkbox"] + .btn-group > label span { width: 20px; } .form-group input[type="checkbox"] + .btn-group > label span:first-child { display: none; } .form-group input[type="checkbox"] + .btn-group > label span:last-child { display: inline-block; } .form-group input[type="checkbox"]:checked + .btn-group > label span:first-child { display: inline-block; } .form-group input[type="checkbox"]:checked + .btn-group > label span:last-child { display: none; }

Related: See More

Questions / Comments: