Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Quiz Radio Buttons"
Bootstrap 3.3.0 Snippet by
fzs1994
3.3.0
Preview
HTML
CSS
View Full Screen
Forked from
Fork
Fork this
Parent
2.8K
 
0 Fav
Post to Facebook
Tweet this
<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"> <div class="btn-group btn-group-vertical" data-toggle="buttons"> <label class="btn active"> <input type="radio" name="options" id="option1" autocomplete="off"> Option 1 </label> <label class="btn"> <input type="radio" name="options" id="option2" autocomplete="off"> Option 2 </label> <label class="btn"> <input type="radio" name="options" id="option3" autocomplete="off"> Option 3 </label> <label class="btn"> <input type="radio" name="options" id="option4" autocomplete="off"> Option 4 </label> </div> </div> </div> </div>
.btn-group { width: 100%; border-radius: 0; } .btn-group .btn { padding: 20px; font-size: 18px; text-align: left; color: #666; } .btn:active, .btn.active { box-shadow: none; } .btn-group .btn.active { box-shadow: none; background-color: #F7F8FB; color: #FF590B; } .btn-group .btn:first-child:before { content: 'A'; border: 2px solid #666; border-radius: 50px; padding: 10px 14px; margin-right: 15px; } .btn-group .btn:nth-child(2):before { content: 'B'; border: 2px solid #666; border-radius: 50px; padding: 10px 14px; margin-right: 15px; } .btn-group .btn:nth-child(3):before { content: 'C'; border: 2px solid #666; border-radius: 50px; padding: 10px 14px; margin-right: 15px; } .btn-group .btn:nth-child(4):before { content: 'D'; border: 2px solid #666; border-radius: 50px; padding: 10px 14px; margin-right: 15px; } .btn-group .btn.active:before { border-color: #FF590B; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76