content logo

Bootstrap Search Boxes:

Bootstrap Search Bar

Every one of us had a situation where we were looking for a certain post in a website but no matter how many menus we looked at or how many pages we skimmed through, we could not find it. we would get frustrated and stuck. In such situations, we had two options. Either to exit the page or refer to the reliable and trusty search bar. Sometimes, a proper HTML search bar can save people a lot of time by helping them get what they are looking for sooner. You just need a big CSS search bar at the top of the screen in order to help you find items as quick as possible. For that reason, we are going to show you a great search bar design which you can get for free.

The search bar code we are offering you has quite a simple design but it is still intriguing. It has a search icon (magnifying glass) and a search button with a green background. It goes right at the middle top of the screen so it’s hard to miss. It does take up a bit of space in your pages but the pay off is much more beneficial as it increases the amount of traffic you get each day by luring in more visitors and keeping more users from leaving the website.

#

CSS Search Bar

#

HTML Search Bar

#

Search Bar Desig

#

Search Bar Code


<!-- This script got from frontendfreecode.com -->
<div class="container-fluid">
    <br/>
	<div class="row justify-content-center">
		<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-lg form-control-borderless" type="search" placeholder="Search topics or keywords">
					</div>
					<!--end of col-->
					<div class="col-auto">
						<button class="btn btn-lg btn-success" type="submit">Search</button>
					</div>
					<!--end of col-->
				</div>
			</form>
		</div>
		<!--end of col-->
	</div>
</div><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
body{
	background:#ddd;
}
.form-control-borderless {
    border: none;
}

.form-control-borderless:hover, .form-control-borderless:active, .form-control-borderless:focus {
    border: none;
    outline: none;
    box-shadow: none;
}
<link href="http://netdna.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css">
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link href="http://netdna.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css">
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<style>
body{
	background:#ddd;
}
.form-control-borderless {
    border: none;
}

.form-control-borderless:hover, .form-control-borderless:active, .form-control-borderless:focus {
    border: none;
    outline: none;
    box-shadow: none;
}
</style>

</head>
<body>
<div class="container-fluid">
    <br/>
	<div class="row justify-content-center">
		<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-lg form-control-borderless" type="search" placeholder="Search topics or keywords">
					</div>
					<!--end of col-->
					<div class="col-auto">
						<button class="btn btn-lg btn-success" type="submit">Search</button>
					</div>
					<!--end of col-->
				</div>
			</form>
		</div>
		<!--end of col-->
	</div>
</div><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview