"BS4 search bar"
Bootstrap 4.1.1 Snippet by ashifulcse

<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 ----------> <div class="container"> <div class="row justify-content-center mt-5 mr-0"> <div class="col-12 col-md-10 col-lg-8"> <form class="card card-sm"> <div class="card-body row no-gutters align-items-center"> <div class="col-auto"> <i class="fas fa-search h4 text-body"></i> </div> <!--end of col--> <div class="col"> <input class="form-control form-control-borderless src_fild" type="search" placeholder="Search topics or keywords"> </div> <!--end of col--> <div class="col-auto"> <button class="btn btn-lg btn-success src_btn" type="submit">Search</button> </div> <!--end of col--> </div> </form> </div> <!--end of col--> </div> </div>
.form-control-borderless { border: none; } .form-control-borderless:hover, .form-control-borderless:active, .form-control-borderless:focus { border: none; outline: none; box-shadow: none; } .card-body { padding-bottom: 12px; padding-top: 12px; padding-right: 12px; padding-left: 12px; background: #607d8b7d; } .src_fild { border-radius: 0; } .src_btn { line-height: 0.5; height: 38px; border-radius: 0; }

Related: See More


Questions / Comments: