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
"Table with radiobuttons filled cell"
Bootstrap 3.2.0 Snippet by
ChabanMaxym
3.2.0
table
buttons
radio
Preview
HTML
CSS
View Full Screen
Forked from
Fork
Fork this
Parent
128
 
0 Fav
Post to Facebook
Tweet this
<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="well well-sm text-center"> <table class="table table-striped table-bordered table-hover table-full-width"> <thead> <tr> <th></th> <th></th> <th></th> <th></th> <th></th> <th></th> </tr> </thead> <tbody> <tr> <th class="center"></th> <td></td> <td></td> <td></td> <td></td> <td style="padding:0; display:inline-block;"> <div class="btn-group" data-toggle="buttons" style="display:inline-block; height:100%; width:100%; background-color:#abc; "> <label class="btn btn-default active"> <input type="radio" name="options" id="option2" autocomplete="off"> <span class="glyphicon glyphicon-none"></span> </label> <label class="btn btn-confirm"> <input background="red" type="radio" name="options" id="option2" autocomplete="off" chacked> <span class="glyphicon glyphicon-ok"></span> </label> <label class="btn btn-reject"> <input type="radio" name="options" id="option1" autocomplete="off"> <span class="glyphicon glyphicon-remove"></span> </label> <label class="btn btn-remove"> <input type="radio" name="options" id="option2" autocomplete="off"> <span class="glyphicon glyphicon-trash"></span> </label> </div> </td> </tr> <tr> <th class="center"></th> <td></td> <td></td> <td></td> <td></td> <td class="center">Buttons</td> </tr> </tbody> </table> <h3>Radio</h3> </div> </div>
.btn span.glyphicon { opacity: 0; } .btn.active span.glyphicon { opacity: 1; } .btn-confirm:hover, .btn-confirm:focus, .btn-confirm:active, .btn-confirm.active, .btn-confirm { color: #fff; background-color: #0FB600; border-color: #398439; } .btn-reject:hover, .btn-reject:focus, .btn-reject:active, .btn-reject.active, .btn-reject { color: #fff; background-color: #F70; border-color: #d60; } .btn-remove:hover, .btn-remove:focus, .btn-remove:active, .btn-remove.active, .btn-remove { color: #fff; background-color: #f00; border-color: #d00; } .glyphicon-none:before { content: "\2122"; color: transparent !important; } .btn-remove:hover{ color: #fff; } .btn { display: inline-block; padding: 6px 12px; margin-bottom: 0; font-size: 14px; font-weight: 400; line-height: 1.42857143; text-align: center; white-space: nowrap; vertical-align: middle; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; background-image: none; border: 1px solid transparent; border-radius: 4px; } .glyphicon-default:before { content: "\e013"; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76