"Custom checkbox"
Bootstrap 3.1.0 Snippet by sumi9xm

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="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="holder">
<table width="100%">
<tr>
<td>Include me in the public list</td>
<td>
<div>
<input type="checkbox" />
<span></span>
</div>
</td>
</tr>
<tr>
<td>Let my friends see my phone number</td>
<td>
<div>
<input type="checkbox" />
<span></span>
</div>
</td>
</tr>
<tr>
<td>Let my friends see my email address</td>
<td>
<div>
<input type="checkbox" checked="" />
<span></span>
</div>
</td>
</tr>
<tr>
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
body{
background: #ecf0f1;
font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 16px;
}
.holder{
background: #fff;
border-radius:5px;
box-shadow: 0 2px 3px 0 rgba(0,0,0,.1);
margin:100px auto;
padding:30px 20px 20px;
width:400px;
}
td{
border-bottom:1px solid #f6f6f6;
padding:5px 10px;
}
td:nth-child(2){
text-align: right;
width: 40px;
}
tr:last-child td{
border:none;
padding:30px 10px 10px;
text-align: center;
}
input[type=checkbox] {
cursor: pointer;
height: 30px;
margin:4px 0 0;
position: absolute;
opacity: 0;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: