"Funky Radio/Checkbox Buttons V2.0"
Bootstrap 3.3.0 Snippet by bacigalupe

<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="col-md-4"> <div class="col-md-6"> <h4>Radio Buttons</h4> <div class="radio"> <div class="radio-default"> <input type="radio" name="radio" id="radio1" /> <label for="radio1">First Option default</label> </div> <div class="radio-primary"> <input type="radio" name="radio" id="radio2" checked/> <label for="radio2">Second Option primary</label> </div> <div class="radio-success"> <input type="radio" name="radio" id="radio3" /> <label for="radio3">Third Option success</label> </div> <div class="radio-danger"> <input type="radio" name="radio" id="radio4" /> <label for="radio4">Fourth Option danger</label> </div> <div class="radio-warning"> <input type="radio" name="radio" id="radio5" /> <label for="radio5">Fifth Option warning</label> </div> <div class="radio-info"> <input type="radio" name="radio" id="radio6" /> <label for="radio6">Sixth Option info</label> </div> </div> </div> </div> </div>
.radio label { /*min-width: 400px;*/ width: 100%; border-radius: 3px; border: 1px solid #D1D3D4; font-weight: normal; } .radio input[type="radio"]:empty { display: none; } .radio input[type="radio"]:empty ~ label { position: relative; line-height: 2.5em; text-indent: 3.25em; margin-top: 2em; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .radio input[type="radio"]:empty ~ label:before { position: absolute; display: block; top: 0; bottom: 0; left: 0; content:''; width: 2.5em; background: #D1D3D4; border-radius: 3px 0 0 3px; } .radio input[type="radio"]:hover:not(:checked) ~ label:before { content:'\2714'; text-indent: .9em; color: #C2C2C2; } .radio input[type="radio"]:hover:not(:checked) ~ label { color: #888; } .radio input[type="radio"]:checked ~ label:before { content:'\2714'; text-indent: .9em; color: #333; background-color: #ccc; } .radio input[type="radio"]:checked ~ label { color: #777; } .radio input[type="radio"]:focus ~ label:before { box-shadow: 0 0 0 3px #999; } .radio-primary input[type="radio"]:checked ~ label:before { color: #fff; background-color: #337ab7; } .radio-success input[type="radio"]:checked ~ label:before { color: #fff; background-color: #5cb85c; } .radio-danger input[type="radio"]:checked ~ label:before { color: #fff; background-color: #d9534f; } .radio-warning input[type="radio"]:checked ~ label:before { color: #fff; background-color: #f0ad4e; } .radio-info input[type="radio"]:checked ~ label:before { color: #fff; background-color: #5bc0de; }

Related: See More


Questions / Comments: