Search Button using Bootstrap

Create a search input box and button group using Bootstrap.

See the Pen Search Button using Bootstrap by Brandon Himpfen (@brandonhimpfen) on CodePen.


<div class="input-group">
	<input type="text" class="form-control" placeholder="Search for...">
      <span class="input-group-btn">
        <button class="btn btn-search" type="button"><i class="fa fa-search fa-fw"></i> Search</button>


.btn-search {
	  background: #424242;
	  border-radius: 0;
	  color: #fff;
	  border-width: 1px;
	  border-style: solid;
	  border-color: #1c1c1c;
	.btn-search:link, .btn-search:visited {
	  color: #fff;
	.btn-search:active, .btn-search:hover {
	  background: #1c1c1c;
	  color: #fff;
Show Comments

Get the latest posts delivered right to your inbox.