"Customized Radio button"
Bootstrap 3.3.0 Snippet by Kiraan

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
<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="pd-tb-20">
<div class="pd-b-20">
<input type="radio" name="radiog_dark" id="radio4" class=" css-checkbox " />
<label for="radio4" class="css-label"> Press me
<h5>On</h5>
</label>
</div>
<div class="pd-b-20">
<input type="radio" name="radiog_dark" id="radio5" class="css-checkbox " checked="checked" />
<label for="radio5" class="css-label"> Press me
<h5>Off</h5>
</label>
</div>
</div>
</div>
</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
.pd-tb-20 {
padding: 40px 20px;
}
.pd-b-20{
padding:30px;
}
input[type=radio].css-checkbox {
position:absolute;
z-index:-1000;
left:-1000px;
overflow: hidden;
clip: rect(0 0 0 0);
height:1px;
width:1px;
margin:-1px;
padding:0;
border:0;
background-repeat:no-repeat;
}
input[type=radio].css-checkbox + label.css-label {
padding-left:42px;
height:30px;
display:inline-block;
line-height:19px;
background-repeat:no-repeat;
background-position: 0 0;
font-size:20px;
vertical-align:middle;
cursor:pointer;
font-family: 'Fira Sans', sans-serif;
font-weight: 500;
}
input[type=radio].css-checkbox:checked + label.css-label {
background-position: 0 -35px;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: