"Price Range and Buying Time Frame"
Bootstrap 3.3.0 Snippet by kobusvanwykk

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 ---------->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://dl.dropboxusercontent.com/u/86701580/mypersonalcdn/renda/renda-icon-font.css">
<div class="container">
<h3>Buying Selling Radio Button Group</h3>
<div class="button-grid-group" id="button-grid-group" data-toggle="buttons">
<label class="btn btn-default button-grid">
<input type="radio" name="options" id="option1" autocomplete="off">
<span class="button-grid-word">$450k - $600k</span>
</label>
<label class="btn btn-default button-grid">
<input type="radio" name="options" id="option2" autocomplete="off">
<span class="button-grid-word">$450k - $600k</span>
</label>
<label class="btn btn-default button-grid">
<input type="radio" name="options" id="option2" autocomplete="off">
<span class="button-grid-word">$450k - $600k</span>
</label>
<label class="btn btn-default button-grid">
<input type="radio" name="options" id="option2" autocomplete="off">
<span class="button-grid-word">$450k - $600k</span>
</label>
<label class="btn btn-default button-grid">
<input type="radio" name="options" id="option2" autocomplete="off">
<span class="button-grid-word">$450k - $600k</span>
</label>
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
.button-grid.active {
background: #7BB712;
}
.button-grid {
width: 130px;
padding: 10px;
position: relative;
margin-bottom:5px;
}
.button-grid.active .button-grid-word{
color: #fff;
}
.button-grid-word {
font-size: 15px;
font-weight: 600;
}
@media (max-width: 400px) {
.mobile-br {
display: none;
}
.button-grid {
width: 49%;
padding: 10px;
position: relative;
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
$(window).resize(function() {
if ($(window).width() <= 600) {
$('#prop-type-group').removeClass('btn-group');
$('#prop-type-group').addClass('btn-group-vertical');
} else {
$('#prop-type-group').addClass('btn-group');
$('#prop-type-group').removeClass('btn-group-vertical');
}
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: