Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Custom Bootstrap Search Button"
Bootstrap 3.2.0 Snippet by
roxid
3.2.0
search
Preview
HTML
CSS
View Full Screen
Fork
Fork this
15.7K
 
0 Fav
Post to Facebook
Tweet this
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div id="quick-access"> <form class="form-inline quick-search-form" role="form" action="#"> <div class="form-group"> <input type="text" class="form-control" placeholder="Search here"> </div> <button type="submit" id="quick-search" class="btn btn-custom"><span class="glyphicon glyphicon-search custom-glyph-color"></span></button> </form> </div> </div>
.quick-search-form .form-control { height: 35px; padding: 8px 15px; color: #a4a4a4; /* change color of text to be typed inside search box */ font-size: 13px; line-height: 20px; background-color: transparent; border: 1px solid #ccc; border-radius: 0!important; -webkit-box-shadow: none; box-shadow: none; } .btn-custom { color: ##FFFFFF; background-color: #7bae23; /* change button color */ border-radius: 0!important; /* button border radius */ padding: 6px 10px; /* Button size change*/ } .btn-custom:hover{ background-color:#9AC94B; /* change button color on hover */ border-radius: 0!important; } .custom-glyph-color{ color:#fff; /* change magnifying glass color in button */ } .custom-glyph-color:hover{ color:#b1b1b1; /* change magnifying glass color in button on mouse hover */ }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76