"Carousel with Search by Er. Om Nath"
Bootstrap 4.1.1 Snippet by omnath

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/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 ----------> <!--For any help Contact to me on https://www.facebook.com/er.omnath--> <!-- Carousel --> <div id="carouselExampleSlidesOnly" class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <!-- <?php echo getSlider(); ?> --> <div class="carousel-item active"> <img style="width: 100%; height: 100%;" src="https://vbwff.com/wp-content/uploads/2016/05/Costa-Signature-Pool-Mosiac-Pic-1200-x-400.jpg" class="d-block w-100" alt="slide_name"> </div> <div class="carousel-item"> <img style="width: 100%; height: 100%;" src="https://d2e5ushqwiltxm.cloudfront.net/wp-content/uploads/sites/82/2016/12/12133028/Inbalance-Spa_1-1200x400.jpg" class="d-block w-100" alt="slide_name"> </div> <div class="carousel-item"> <img style="width: 100%; height: 100%;" src="https://d2e5ushqwiltxm.cloudfront.net/wp-content/uploads/sites/82/2016/12/12133230/Lounge-Bar-1200x400.jpg" class="d-block w-100" alt="slide_name"> </div> </div> </div> <!-- Carousel Searchbar --> <section class="search-sec container text-center col-md-10"> <div class="col-md-12"> <form method="post" action="shops" novalidate="novalidate"> <div class="row"> <div class="col-lg-12"> <div class="row"> <div class="col-lg-4 col-md-4 col-sm-12 p-0"> <div class="input-group-prepend"> <span class="input-group-text">States</span> <select class="form-control search-slt" id="ststes" onchange="states(this.value)" required> <option value="" disabled selected>Select State</option> <option value="Bihar">Select 1</option> <option value="West Bengal">Select 2</option> </select> </div> </div> <div class="col-lg-4 col-md-4 col-sm-12 p-0"> <div class="input-group-prepend"> <span class="input-group-text">Locality</span> <select class="form-control search-slt" name="loc" id="localitylist" required> <option disabled selected>Select Area</option> <option value="Bihar">Select 1</option> <option value="West Bengal">Select 2</option> </select> </div> </div> <div class="col-lg-4 col-md-4 col-sm-12 p-0"> <input type="submit" class="btn btn-danger wrn-btn" value="search"> </div> </div> </div> </div> </form> </div> </section>
body{ background-color: #e8e8e8; } /*search box css start here*/ .search-sec{ padding: 1rem; } .search-slt{ display: block; width: 100%; font-size: 0.875rem; line-height: 1.5; color: #55595c; background-color: #fff; background-image: none; border: 1px solid #ccc; height: calc(3rem + 2px) !important; border-radius:0; } .wrn-btn{ width: 100%; font-size: 16px; font-weight: 400; text-transform: capitalize; height: calc(3rem + 2px) !important; border-radius:0; } @media (min-width: 992px){ .search-sec{ position: relative; border-radius: 8px; /*top: -114px;*/ top: -41px; background: #fff; } } @media (max-width: 992px){ .search-sec{ background: #1A4668; } }

Related: See More


Questions / Comments: