Bootstrap 3 Template
This is a simple Twitter Bootstrap 3 template. You can fork it to get a ready to use Bootstrap 3 fiddle.
HTML
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<div class="container">
<div class="row">
<div class="col-md-4 col-sm-4">
<form class="car-finder-container dflt-container">
<h2 class="h2-finder">Car finder</h2>
<ul class="toggle-view">
<li class="li-toggle">
<h3 class="h3-finder-toggle">Price<span class="glyphicon glyphicon-plus glyph-plus-toggle"></span></h3>
<div class="panel">
<input id="bodytype-checkbox" class="cursor-checkbox" type="checkbox"/>
<label for="bodytype-checkbox" class="cursor-checkbox">Bodytype</label>
</div>
</li>
</ul>
<button href="#" class="btn btn-block car-search-button btn-lg btn-success">Search cars <span class="glyphicon car-search-g glyphicon-search"></span>
</button>
<h4 class="h4-finder"><a href="#">Try our Smart Search </a><span class="glyphicon info-car-search-g glyphicon-info-sign"></span></h4>
</form>
</div>
</div>
</div>
CSS
.car-finder-container {
background-color: #DD3B4D;
border-radius: 6px 6px 0 0;
padding: 1px 10px;
overflow:hidden;
}
.h2-finder {
font: 600 2em 'Open Sans', sans-serif;
color: #fff;
margin-top: 0.1em;
margin-bottom: 0;
}
.h3-finder {
font: 400 1.4em 'Open Sans', sans-serif;
color: #fff;
margin-top: 0em;
}
.h4-finder {
color: #fff;
font: 400 1.2em 'Open Sans', sans-serif;
}
.select-box {
margin-bottom: 0.5em;
}
.price-left {
position: relative;
display: inline-block;
float: left;
width:47%;
}
.price-range-right {
position: relative;
display: inline-block;
float: right;
width:47%;
}
.car-search-button {
background: -webkit-linear-gradient(#183775, #122b5c);
background: -o-linear-gradient(#183775, #122b5c);
background: -moz-linear-gradient(#183775, #122b5c);
background: linear-gradient(#183775, #122b5c);
border-color: #0f275a;
font: 600 2em 'Open Sans', sans-serif;
margin-bottom: 10px;
}
.btn-success:hover {
background: -webkit-linear-gradient(#183775, #122b5c);
background: -o-linear-gradient(#183775, #122b5c);
background: -moz-linear-gradient(#183775, #122b5c);
background: linear-gradient(#183775, #122b5c);
border-color: #0f275a;
font: 600 2em 'Open Sans', sans-serif;
}
.car-search-g {
font-size: 0.8em;
}
.info-car-search-g {
color: #fff;
font-size: 0.9em;
}
/*Used car page finder */
.dflt-container {
background-color: #C62134;
}
.glyph-plus-toggle {
display: inline-block;
float: right;
color: #fff;
top: 3px;
}
.toggle-view {
list-style:none;
margin:10px 0;
padding:0;
}
.toggle-view .li-toggle {
border-bottom:1px solid #ccc;
border-top:1px solid #ccc;
position:relative;
padding: 10px 0;
}
.h3-finder-toggle {
cursor:pointer;
margin:0;
font: 400 1.2em 'Open Sans', sans-serif;
color: #fff;
}
.toggle-view .panel {
margin:5px 0;
display:none;
background-color: #DD3B4D;
}
JavaScript
$(document).ready(function () {
$('.toggle-view .h3-finder-toggle').click(function () {
var text = $(this).next();
if (text.is(':hidden')) {
text.slideDown('200');
$(this).find('span').removeClass("glyphicon glyphicon-plus glyph-plus-toggle").addClass("glyphicon glyphicon-minus glyph-minus-toggle glyph-plus-toggle");
} else {
text.slideUp('200');
$(this).find('span').removeClass("glyphicon glyphicon-minus glyph-minus-toggle").addClass("glyphicon glyphicon-plus glyph-plus-toggle");
}
});
});