"Bootstrap Input Fields"
Bootstrap 3.3.0 Snippet by Webcentcreations

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<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="row">
<div class="col-md-6 offset-md-3 mt-5">
<div class="customcard">
<h4 class="text-center mt-2">Checkbox</h4>
<div class="form-group mt-4 gray-fill-checkbox form-check">
<input type="checkbox" id="customcheck1"/>
<label class="gray-fill-label" for="customcheck1">gray checkbox</label>
</div>
<div class="form-group mt-4 gray-circle-checkbox form-check">
<input type="checkbox" id="customcheck2">
<label class="gray-circle-label" for="customcheck2">gray circle checkbox</label>
</div>
<div class="form-group mt-4 border-fill-checkbox form-check">
<input type="checkbox" class="" id="customcheck3">
<label class="border-fill-label" for="customcheck3">border checkbox</label>
</div>
<div class="form-group mt-4 border-circle-checkbox form-check">
<input type="checkbox" class="" id="customcheck4">
<label class="border-circle-label" for="customcheck4">border checkbox</label>
</div>
<div class="form-group mt-4 bg-fill-checkbox form-check">
<input type="checkbox" id="customcheck5">
<label class="bg-fill-label" for="customcheck5">bgcolor checkbox</label>
</div>
<div class="form-group bg-cirle-checkbox mt-4 form-check">
<input type="checkbox" class="" id="customcheck6">
<label class="bg-cirle-label" for="customcheck6">bgcolor circle checkbox</label>
</div>
<div class="form-group mt-4 outline-fill-checkbox form-check">
<input type="checkbox" id="customcheck7">
<label class="outline-fill-label" for="customcheck7">Outline checkbox</label>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.text-center{
text-align: center;
}
.mt-5{
margin-top: 3em;
}
.mt-2{
margin-top: 0.8em;
}
.mt-4{
margin-top: 2em;
}
.customcard{
box-shadow: 0px 8px 12px 2px rgb(0,0,0,0.24);
border-radius: 10px;
padding:10px;
}
input[type="checkbox"]{
margin-top: 0px !important;
opacity: 0;
}
.gray-fill-checkbox label:before{
display: inline-block;
content: "";
position: absolute;
border: 2px solid #bbb7b7;
background-color: #bbb7b7;
border-radius: .25em;
-webkit-appearance: none;
width: 1.2em;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: