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
"Radio Button with Check box and check box by itpixelz"
Bootstrap 3.3.0 Snippet by
hdpixelz
3.3.0
radio
Preview
HTML
CSS
View Full Screen
Fork
Fork this
12.1K
 
8 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 ----------> <ul class="chec-radio"> <li class="pz"> <label class="radio-inline"> <input type="checkbox" id="pro-chx-residential" name="gas_availability" class="pro-chx" value="yes" checked> <div class="clab">Gas Availability</div> </label> </li> <li class="pz"> <label class="radio-inline"> <input type="checkbox" id="pro-chx-residential" name="electricity_availability" class="pro-chx" value="yes"> <div class="clab">Electric Availability</div> </label> </li> <li class="pz"> <label class="radio-inline"> <input type="checkbox" id="pro-chx-residential" name="phone_internet" class="pro-chx" value="yes"> <div class="clab">Phone and Internet</div> </label> </li> <li class="pz"> <label class="radio-inline"> <input type="checkbox" id="pro-chx-residential" name="water_availability" class="pro-chx" value="yes"> <div class="clab">Water Availability</div> </label> </li> <li class="pz"> <label class="radio-inline"> <input type="checkbox" id="pro-chx-residential" name="sanitation" class="pro-chx" value="yes"> <div class="clab">Sanitation</div> </label> </li> </ul> <ul class="chec-radio"> <li class="pz"> <label class="radio-inline"> <input type="radio" checked="" id="pro-chx-residential" name="property_type" class="pro-chx" value="constructed"> <div class="clab">Constructed</div> </label> </li> <li class="pz"> <label class="radio-inline"> <input type="radio" id="pro-chx-commercial" name="property_type" class="pro-chx" value="unconstructed" checked> <div class="clab">Un Constructed</div> </label> </li> <li class="pz"> <label class="radio-inline"> <input type="radio" id="pro-chx-open" name="property_type" class="pro-chx" value="open_land"> <div class="clab">Open Land</div> </label> </li> </ul>
ul.chec-radio { margin: 15px; } ul.chec-radio li.pz { display: inline; } .chec-radio label.radio-inline input[type="checkbox"] { display: none; } .chec-radio label.radio-inline input[type="checkbox"]:checked+div { color: #fff; background-color: #000; } .chec-radio .radio-inline .clab { cursor: pointer; background: #e7e7e7; padding: 7px 20px; text-align: center; text-transform: uppercase; color: #333; position: relative; height: 34px; float: left; margin: 0; margin-bottom: 5px; } .chec-radio label.radio-inline input[type="checkbox"]:checked+div:before { content: "\e013"; margin-right: 5px; font-family: 'Glyphicons Halflings'; } .chec-radio label.radio-inline input[type="radio"] { display: none; } .chec-radio label.radio-inline input[type="radio"]:checked+div { color: #fff; background-color: #000; } .chec-radio label.radio-inline input[type="radio"]:checked+div:before { content: "\e013"; margin-right: 5px; font-family: 'Glyphicons Halflings'; }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76