"Simple Search Form"
Bootstrap 4.1.1 Snippet by the1edema

<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 mt-5"> <div class="row"> <div class="col-md-2"> </div> <div class="col-md-8"> <form class="form-group text-center"> <input type="search" name="" class="form-control search" placeholder="Search by Name"> <button type="submit" name="search" class="search-btn mt-2">Search</button> </form> </div> <div class="col-md-2"> </div> </div> </div>
.search { border: 1px solid #f7f7f7; padding-top: 15px; padding-bottom: 15px; } .search-btn { border-radius: 5px; padding: 5px 20px; border: 1px solid #f7f7f7; background-color: coral; color: #fff; } .search-btn:hover { background-color: #ff7847; color: #fff; }

Related: See More


Questions / Comments: