• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
seegatesite header

Seegatesite.com

Seegatesite.com - Programming Tutorial , Sharing , How and Learn Together

  • TOOLS
    • Bootstrap Navbar Online Generator
    • Customize Sidebar Menu Bootstrap 3
    • Bootstrap Demo
  • ADVERTISE
  • CATEGORIES
    • Android
    • Blogging Tips
    • Database
    • CSS
    • Info Gadget
    • Javascript
    • Linux
    • PHP
    • Various
    • WordPress
  • Q&A
  • PHP
  • JAVASCRIPT
  • JQUERY
  • ANGULAR
  • WORDPRESS
  • SEO
  • REACT
🏠 » CSS » Create Cool Search Box Form In The Navbar Bootstrap

Create Cool Search Box Form In The Navbar Bootstrap

By Sigit Prasetya Nugroho ∙ August 4, 2015 ∙ CSS ∙ 1 Comment

Share : TwitterFacebookTelegramWhatsapp

Programming tutorial – in this tutorial I will share about how to create cool search box form in the navbar bootstrap, the search box form useful for reducing limitations of place on the navbar bootstrap. Display search box form will look like the following picture

programming tutorial - create cool search box form in navbar bootstrap 1
programming tutorial - create cool search box form in navbar bootstrap 2

This Navbar is running well on fixed top navbar bootstrap

Let’s begin the tutorial

Table of Contents

  • 1  Create cool search box form navbar bootstrap
    • 1.1 So my tutorial about how to create cool search box form In the navbar bootstrap, hope it is useful 🙂

 Create cool search box form navbar bootstrap

Create new navbar bootstrap like below

Related Articles :

  • Upgrade Responsive Bootstrap Table Using Footable Plugin
  • [Resolved] SweetAlert Prompt Not Working On Modal Dialog Bootstrap In Firefox
  • Change Bootstrap Modal Dialog Effect With Animate.css

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<nav class="navbar navbar-default navbar-fixed-top">
 
<div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
 
<div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">Brand</a>
    </div>
 
    <!-- Collect the nav links, forms, and other content for toggling -->
 
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
 
<ul class="nav navbar-nav">
 
<li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
 
<li><a href="#">Link</a></li>
 
<li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
 
<ul class="dropdown-menu">
 
<li><a href="#">Action</a></li>
 
<li><a href="#">Another action</a></li>
 
<li><a href="#">Something else here</a></li>
 
<li role="separator" class="divider"></li>
 
<li><a href="#">Separated link</a></li>
 
<li role="separator" class="divider"></li>
 
<li><a href="#">One more separated link</a></li>
 
          </ul>
 
        </li>
 
      </ul>
 
    </div>
 
<!-- /.navbar-collapse -->
 
<div class="container searchbardiv" id="formsearch">
 
<form role="search" method="get" id="searchform"  >
 
<div class="input-group">
                        <input type="text" id="searchbox" class="form-control" name="s" id="s">
 
<div class="input-group-btn">
                            <button class="btn btn-default"  id="searchsubmit"  type="submit">
                                <strong>Search</strong>
                            </button>
                            
                        </div>
 
                    </div>
 
                </form>
 
            </div>
 
  </div>
 
<!-- /.container-fluid -->
  <button type="button" class="buttonsearch" id="buttonsearch">
            <i class="glyphicon glyphicon-search openclosesearch"></i><i class="glyphicon glyphicon-remove openclosesearch" style="display:none"></i>
        </button>
</nav>
 
<div class="jumbotron">
 
<h1>Hello guys,</h1>
 
This is example cool search box form in the navbar bootstrap, to get full code and tutorial please visit
 
<a class="btn btn-primary btn-lg" href="https://seegatesite.com" role="button">seegatesite.com</a>
 
</div>

Then add the following css below

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
.searchbardiv{
    display: block;
    position: fixed;
    background: #7D1935 ;
    top: 50px;
    right: 0px;
    z-index: 1001;
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin: 0px;
}
.buttonsearch{
    position: fixed;
    top :18px;
    float: right;
    right: 0px;
    margin-right: 10px;
    background-color: transparent;
    border: 0px;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}
.buttonsearch:hover{
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    border: 0px;
 
}
.buttonsearch:focus{
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    border: 0px;
 
}
#formsearch{
    display: none;
}
.glyphicon.glyphicon-search {
    font-size: 18px;
}
#searchbox {
    
    box-shadow: none;
    padding: 8px 14px;
}
#searchbox:hover {
    box-shadow: none;
}
 
.form-control:focus {
    border-color: #ccc;
    }
 
.navbar-toggle {
    margin-right: 35px;
    border: none;
    background: transparent !important;
}
.navbar-toggle:hover {
    background: transparent !important;
}
.navbar-toggle .icon-bar {
    width: 22px;
    transition: all 0.2s;
}
.navbar-toggle .top-bar {
    transform: rotate(45deg);
    transform-origin: 10% 10%;
}
.navbar-toggle .middle-bar {
    opacity: 0;
}
.navbar-toggle .bottom-bar {
    transform: rotate(-45deg);
    transform-origin: 10% 90%;
}
.navbar-toggle.collapsed .top-bar {
    transform: rotate(0);
}
.navbar-toggle.collapsed .middle-bar {
    opacity: 1;
}
.navbar-toggle.collapsed .bottom-bar {
    transform: rotate(0);
}

So the search button can run a well, add the jquery function as below

1
2
3
4
5
6
7
$('#buttonsearch').click(function(){
                $('#formsearch').slideToggle( "fast",function(){
                     $( '#content' ).toggleClass( "moremargin" );
                } );
                $('#searchbox').focus()
                $('.openclosesearch').toggle();
        });

Finish, you can use these tutorial create search box navbar above to beautify your pages. Please see demo on the button below

programming tutorial - demo cool search box form in navbar bootstrap

So my tutorial about how to create cool search box form In the navbar bootstrap, hope it is useful 🙂

Another CSS Related Post :

  • Free Simple Admin Dashboard Bootstrap 4 By Seegatesite
  • 4 Best Sites To Download School And Education Icons Sets
  • How to Make a Shake Effect Validation Like the WordPress Login Form
  • [CSS] How To Fixed Select2 Responsive Width
  • Upgrade Responsive Bootstrap Table Using Footable Plugin
  • How To Centering And Make Full Width Youtube Iframe On Blog Article

Avatar for Sigit Prasetya Nugroho

About Sigit Prasetya Nugroho

This site is a personal Blog of Sigit Prasetya Nugroho, a Desktop developer and freelance web developer working in PHP, MySQL, WordPress.

Reader Interactions

Comments

  1. Avatar for Jay PatelJay Patel says

    February 24, 2018 at 5:44 am

    Bad Live Demo Tutorials

    Reply
    • Avatar for Sigit Prasetya NugrohoSigit Prasetya Nugroho says

      February 26, 2018 at 1:11 am

      bad live ? sory i dont understand.. the demo live work perfectly !! sorry if it disappoints you

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Welcome to my Home,

Avatar for Sigit Prasetya NugrohoThis site is a personal Blog of Sigit Prasetya Nugroho, a Desktop developer and freelance web developer working in PHP, MySQL, WordPress.



Popular Articles

Checked checkbox AdminLTE Bootstrap in Jquery

November 4, 2014 By Sigit Prasetya Nugroho 7 Comments

Simple create date format validation with jqueryUI

December 21, 2014 By Sigit Prasetya Nugroho Leave a Comment

Create Simple Progress Bar for Fake Online Generator with Jquery

January 10, 2015 By Sigit Prasetya Nugroho Leave a Comment

22+ Coolest Free Jquery Plugin For Premium Theme

October 3, 2015 By Sigit Prasetya Nugroho Leave a Comment

Easy Build Your Anti Copy Paste Plugin

October 6, 2015 By Sigit Prasetya Nugroho Leave a Comment

Popular Tags

adminlte (15) adsense (13) adsense tips (4) affiliate amazon (13) amazon (12) Android (8) angular (16) angular 4 (12) angular 5 (4) asin grabber (3) Bootstrap (27) codeigniter (5) create wordpress theme (5) crud (8) css (6) free wordpress theme (7) google adsense (4) imacros (4) increase traffic (6) jquery (34) laravel (10) laravel 5 (5) learn android (5) modal dialog (5) mysql (6) nodeJs (4) optimize seo (4) pdo (6) php (30) plugin (53) pos (7) Publisher Tips (5) react (3) Reactjs (7) SEO (37) theme (17) tutorial angular (5) tutorial angular 4 (6) tutorial javascript (10) tutorial javascript beginners (4) twitter (3) widget (3) wordpress (18) wordpress plugin (13) XMLRPC (5)




  • About
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms and Conditions

©2021 Seegatesite.com