Skip to main content

Header Style 2

Header style 2 with sticky nav and dropdown mobile menu

                
                  <!--Header start-->
                  <header class="header">
                    <!-- top main menu -->
                    <div class="top-menu bg-secondary">
                      <div class="container">
                        <!--Navbar-->
                        <nav class="navbar navbar-expand-lg navbar-dark p-0">
                          <!--Responsive right Toggle Button-->
                          <button class="navbar-toggler nav-hamburger float-end border-0 px-0" type="button" data-bs-toggle="collapse" data-bs-target="#navbarTogglerDemo1" aria-controls="navbarTogglerDemo1" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="hamburger-icon">
                              <span></span>
                              <span></span>
                              <span></span>
                              <span></span>
                            </span>
                          </button>
                          <!-- Mobile logo -->
                          <a href="#">
                            <img class="mobile-logo img-fluid d-lg-none mx-auto" src="../../assets/img/logo/logo-mobile.png" alt="Logo site">
                          </a>
                          <!--Responsive right Toggle Button-->
                          <button class="navbar-toggler px-0" type="button" data-bs-toggle="collapse" data-bs-target="#navbarTogglerDemo2" aria-controls="navbarTogglerDemo2" aria-expanded="false" aria-label="Toggle navigation">
                            <svg xmlns="http://www.w3.org/2000/svg" width="1.5rem" height="1.5rem" fill="currentColor" viewBox="0 0 512 512"><path d="M221.09,64A157.09,157.09,0,1,0,378.18,221.09,157.1,157.1,0,0,0,221.09,64Z" style="fill:none;stroke:currentColor;stroke-miterlimit:10;stroke-width:32px"/><line x1="338.29" y1="338.29" x2="448" y2="448" style="fill:none;stroke:currentColor;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/></svg>
                          </button>
                          <!--Top Navbar-->
                          <div id="navbarTogglerDemo" class="collapse navbar-collapse">
                            <!-- Time -->
                            <div class="weather-time d-none d-lg-block">
                              <time class="navbar-text me-2" datetime="2019-10-28">Monday, Oct 28, 2019</time>
                            </div>
                            <!--Top left menu-->
                            <ul class="navbar-nav">
                              <li class="nav-item"><a class="nav-link" href="#">About Us</a></li>
                              <li class="nav-item"><a class="nav-link" href="#">Contact Us</a></li>
                            </ul>
                            <!--end top left menu-->
                            <!--Top right menu-->
                            <ul class="navbar-nav ms-auto text-center">
                              <li class="nav-item"><a class="nav-link" href="https://facebook.com" target="_blank" rel="noopener noreferrer" aria-label="facebook">
                                <svg xmlns="http://www.w3.org/2000/svg" width="1rem" height="1rem" fill="currentColor" class="bi bi-facebook" viewBox="0 0 16 16">
                                  <path d="M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951z"/>
                                </svg>
                              </a></li>
                              <li class="nav-item"><a class="nav-link" href="https://twitter.com" target="_blank" rel="noopener noreferrer" aria-label="twitter">
                                <svg xmlns="http://www.w3.org/2000/svg" width="1rem" height="1rem" fill="currentColor" class="bi bi-twitter" viewBox="0 0 16 16">
                                  <path d="M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"/>
                                </svg>
                              </a></li>
                              <li class="nav-item"><a class="nav-link" href="https://youtube.com" target="_blank" rel="noopener noreferrer" aria-label="youtube">
                                <svg xmlns="http://www.w3.org/2000/svg" width="1rem" height="1rem" fill="currentColor" class="bi bi-youtube" viewBox="0 0 16 16">
                                  <path d="M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.007 2.007 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.007 2.007 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31.4 31.4 0 0 1 0 7.68v-.122C.002 7.343.01 6.6.064 5.78l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.007 2.007 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A99.788 99.788 0 0 1 7.858 2h.193zM6.4 5.209v4.818l4.157-2.408L6.4 5.209z"/>
                                </svg>
                              </a></li>
                              <li class="nav-item"><a class="nav-link" href="https://instagram.com" target="_blank" rel="noopener noreferrer" aria-label="instagram">
                                <svg xmlns="http://www.w3.org/2000/svg" width="1rem" height="1rem" fill="currentColor" viewBox="0 0 512 512"><path d="M349.33,69.33a93.62,93.62,0,0,1,93.34,93.34V349.33a93.62,93.62,0,0,1-93.34,93.34H162.67a93.62,93.62,0,0,1-93.34-93.34V162.67a93.62,93.62,0,0,1,93.34-93.34H349.33m0-37.33H162.67C90.8,32,32,90.8,32,162.67V349.33C32,421.2,90.8,480,162.67,480H349.33C421.2,480,480,421.2,480,349.33V162.67C480,90.8,421.2,32,349.33,32Z"/><path d="M377.33,162.67a28,28,0,1,1,28-28A27.94,27.94,0,0,1,377.33,162.67Z"/><path d="M256,181.33A74.67,74.67,0,1,1,181.33,256,74.75,74.75,0,0,1,256,181.33M256,144A112,112,0,1,0,368,256,112,112,0,0,0,256,144Z"/></svg>
                              </a></li>
                              <li class="nav-item"><a class="nav-link" href="https://vimeo.com" target="_blank" rel="noopener noreferrer" aria-label="vimeo">
                                <svg xmlns="http://www.w3.org/2000/svg" width="1rem" height="1rem" fill="currentColor" viewBox="0 0 512 512"><path d="M476.9,114c-5-23.39-17.51-38.78-40.61-46.27s-64.92-4.5-94.12,16.79c-26.79,19.51-46.26,54.42-54,78.28a4,4,0,0,0,5.13,5c10.77-3.8,21.72-7.1,34-6.45,15,.8,24.51,12,24.91,25.29.3,9.79-.2,18.69-3.6,27.68C337.87,243,321,270.78,301.06,295.07a72.49,72.49,0,0,1-10,9.89c-10.21,8.29-18.81,6.1-25.41-5.2-5.4-9.29-9-18.88-12.2-29.08-12.4-39.67-16.81-80.84-23.81-121.52-3.3-19.48-7-39.77-18-56.86-11.6-17.79-28.61-24.58-50-22-14.7,1.8-36.91,17.49-47.81,26.39,0,0-56,46.87-81.82,71.35l21.2,27s17.91-12.49,27.51-18.29c5.7-3.39,12.4-4.09,17.2.2,4.51,3.9,9.61,9,12.31,14.1,5.7,10.69,11.2,21.88,14.7,33.37,13.2,44.27,25.51,88.64,37.81,133.22,6.3,22.78,13.9,44.17,28,63.55,19.31,26.59,39.61,32.68,70.92,21.49,25.41-9.09,46.61-26.18,66-43.87,33.11-30.18,59.12-65.36,85.52-101.14C433.59,270,450.49,242,464.59,210.72,478.5,179.74,484,147.26,476.9,114Z"/></svg>
                              </a></li>
                            </ul>
                            <!--end top right menu-->
                          </div>
                          <!--End top navbar-->
                        </nav>
                        <!-- End Navbar -->
                      </div>
                    </div>
                    <!--end top main menu-->

                    <!--start second header-->
                    <div class="second-header">
                      <div class="container">
                        <div class="row">
                          <!--Left content logo-->
                          <div class="col-lg-4">
                            <div id="main-logo" class="main-logo my-2 my-lg-4 d-none d-lg-block">
                              <a class="navbar-brand" href="#">
                                <img class="img-fluid" src="../../assets/img/logo/default-logo.png" alt="Logo site">
                              </a>
                            </div>
                          </div>
                          <!--Right content ads-->
                          <div class="col-lg-8">
                            <div class="my-2 my-md-3 my-lg-4 d-none d-md-block text-center">
                              <a href="#" target="_blank">
                                <img class="img-fluid bg-light" src="../../assets/img/ads/728-demo.png" alt="Advertiser space">
                              </a>
                            </div>
                          </div>
                          <!--search mobile-->
                          <div class="collapse navbar-collapse col-12 py-2" id="navbarTogglerDemo2">
                            <form class="form-inline" action="#">
                              <div class="input-group w-100">
                              <input type="text" class="form-control border border-end-0" placeholder="Search..." aria-label="search">
                              <button class="btn btn-primary" type="submit">
                                <svg xmlns="http://www.w3.org/2000/svg" width="1rem" height="1rem" fill="currentColor" viewBox="0 0 512 512"><path d="M221.09,64A157.09,157.09,0,1,0,378.18,221.09,157.1,157.1,0,0,0,221.09,64Z" style="fill:none;stroke:currentColor;stroke-miterlimit:10;stroke-width:32px"/><line x1="338.29" y1="338.29" x2="448" y2="448" style="fill:none;stroke:currentColor;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/></svg>
                              </button>
                            </div>
                            </form>
                          </div>
                          <!--end search mobile-->
                        </div>
                      </div>
                    </div>
                    <!--End second header-->
                  </header>
                  <!--End header-->

                  <!--Main menu-->
                  <div id="main-menu1" class="full-nav sticky-lg-top bg-white border-none border-lg-1 border-bottom shadow-b-sm py-0">
                    <div class="container">
                      <!--Main menu-->
                      <nav id="main-menu" class="main-menu navbar navbar-expand-lg navbar-light p-0">
                        <!--Navbar menu-->
                        <div id="navbarTogglerDemo1" class="collapse navbar-collapse hover-mode">

                          <!--left main menu start-->
                          <ul id="start-main" class="navbar-nav main-nav navbar-uppercase first-start-lg-0">
                            <li class="nav-item dropdown">
                              <a id="navbarhome" class="nav-link dropdown-toggle" role="button" data-bs-toggle="dropdown" aria-expanded="false" href="#">Home</a>
                              <!--link-->
                              <ul class="dropdown-menu" aria-labelledby="navbarhome">
                                <li><a class="dropdown-item" href="#">Homepage - Default</a></li>
                                <li><a class="dropdown-item" href="#">Homepage - Boxed</a></li>
                              </ul><!-- end link -->
                            </li>
                            <li class="nav-item"><a class="nav-link" href="#">Business</a></li>
                            <!--mega menu-->
                            <li class="nav-item mega-dropdown dropdown">
                              <a id="navbarmega2" class="nav-link dropdown-toggle" role="button" data-bs-toggle="dropdown" aria-expanded="false" href="#">Mega</a>
                              <div id="vertical-tabs" class="dropdown-menu mega w-100 px-3 py-0" aria-labelledby="navbarmega2">
                                <div class="row mega-hovers">
                                  <div class="col-sm-3 col-md-2 vertical-tabs hover-tabs px-0 border-end-sm">
                                    <!--navigation tabs-->
                                    <ul class="nav nav-tabs text-center py-4 border-start-0 border-end-0 w-100" role="tablist">
                                      <li class="nav-item">
                                        <a id="nav-one" class="nav-link font-weight-normal active" href="#mega-one" role="tab" data-bs-toggle="tab" aria-controls="mega-one" aria-selected="true">Business</a>
                                      </li>
                                      <li class="nav-item">
                                        <a id="nav-two" class="nav-link font-weight-normal" href="#mega-two" role="tab" data-bs-toggle="tab" aria-controls="mega-two" aria-selected="false">Travel</a>
                                      </li>
                                      <li class="nav-item">
                                        <a id="nav-three" class="nav-link font-weight-normal" href="#mega-three" role="tab" data-bs-toggle="tab" aria-controls="mega-three" aria-selected="false">Sports</a>
                                      </li>
                                      <li class="nav-item">
                                        <a id="nav-four" class="nav-link font-weight-normal" href="#mega-four" role="tab" data-bs-toggle="tab" aria-controls="mega-three" aria-selected="false">Fashion</a>
                                      </li>
                                    </ul><!--end navigation tabs-->
                                  </div>
                                  <div class="col-sm-9 col-md-10 p-4">
                                    <!-- Tabs start -->
                                    <div id="mega-tabs" class="tab-content">
                                      <!--tabs content-->
                                      <div id="mega-one" class="tab-pane active show" role="tabpanel" aria-labelledby="nav-one">
                                        <div class="row">
                                          <!--post start-->
                                          <div class="col-12">TABS 1</div>
                                          <!--end post-->
                                        </div>
                                      </div>
                                      <!--tabs content-->
                                      <div id="mega-two" class="tab-pane" role="tabpanel" aria-labelledby="nav-two">
                                        <div class="row">
                                          <div class="col-12">TABS 2</div>
                                        </div>
                                      </div>
                                      <!--tabs content-->
                                      <div id="mega-three" class="tab-pane" role="tabpanel" aria-labelledby="nav-three">
                                        <div class="row">
                                          <div class="col-12">TABS 3</div>
                                        </div>
                                      </div>
                                      <!--tabs content-->
                                      <div id="mega-four" class="tab-pane" role="tabpanel" aria-labelledby="nav-four">
                                        <!--tabs content-->
                                        <div class="row">
                                          <div class="col-12">TABS 4</div>
                                        </div>
                                      </div><!-- end tabs content -->
                                    </div>
                                    <!--end tabs-->
                                  </div>
                                </div>
                              </div>
                            </li><!--end mega menu-->

                            <!--mega menu-->
                            <li class="nav-item mega-dropdown dropdown">
                              <a id="navbarmega3" class="nav-link dropdown-toggle" role="button" data-bs-toggle="dropdown" aria-expanded="false" href="#">Video</a>
                              <div class="dropdown-menu mega w-100 p-4" aria-labelledby="navbarmega3">
                                <div class="row">
                                  <!--video post start-->
                                  <article class="col-6 col-lg-3">
                                    <div class="card card-full hover-a mb-4">
                                      <!--thumbnail, category & icon-->
                                      <div class="ratio_251-141 image-wrapper">
                                        <a href="#">
                                          <img class="img-fluid lazy" src="../../../assets/img/assets/lazy-empty.png" data-src="../../../assets/img/251x141/img1.jpg" alt="Image description">
                                          <div class="position-absolute text-center top-4 w-100">
                                            <span class="fa-stack-sea text-primary">
                                              <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">
                                                <path d="M11.596 8.697l-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"/>
                                              </svg>
                                            </span>
                                          </div>
                                        </a>
                                        <a class="position-absolute m-2 t-0 p-1 badge badge-primary" href="../../../html/category/category.html">Fashion</a>
                                      </div>
                                      <!-- title, date & comments -->
                                      <div class="card-body">
                                        <h3 class="card-title h6">
                                          <a href="#">Why Sitting May Be Bad for Your Brain Health</a>
                                        </h3>
                                        <div class="card-text text-muted small">
                                          <time datetime="2019-10-22">Oct 22, 2019</time>
                                          <span title="12 comment" class="float-end">
                                            <span class="icon-comments"></span> 12
                                          </span>
                                        </div>
                                      </div>
                                    </div>
                                  </article>
                                  <!--end video post-->
                                </div>
                              </div>
                            </li><!--end mega menu-->

                            <!--dropdown submenu-->
                            <li class="nav-item dropdown">
                              <a id="navbarDropdown" class="nav-link dropdown-toggle" role="button" data-bs-toggle="dropdown" aria-expanded="false" href="#">Features</a>
                              <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                                <!--submenu-->
                                <li class="dropdown-submenu">
                                  <a id="sub10" class="dropdown-item dropdown-toggle" href="#">Submenu</a>
                                  <ul class="submenu dropdown-menu" aria-labelledby="sub10">
                                    <!--child submenu-->
                                    <li class="dropdown-submenu">
                                      <a id="sub10a" class="dropdown-item dropdown-toggle" href="#">Child Submenu</a>
                                      <ul class="submenu dropdown-menu" aria-labelledby="sub10a">
                                        <li><a class="dropdown-item" href="#">Child Submenu</a></li>
                                        <li><a class="dropdown-item" href="#">Child Submenu</a></li>
                                        <li><a class="dropdown-item" href="#">Child Submenu</a></li>
                                      </ul>
                                    </li><!--End child submenu-->
                                    <li><a class="dropdown-item" href="#">Child Submenu</a></li>
                                    <li><a class="dropdown-item" href="#">Child Submenu</a></li>
                                  </ul>
                                </li><!--end submenu-->
                              </ul>
                            </li><!--end dropdown submenu-->

                            <!--mega menu-->
                            <li class="nav-item mega-dropdown dropdown">
                              <a id="navbarmega4" class="nav-link dropdown-toggle" role="button" data-bs-toggle="dropdown" aria-expanded="false" href="#">News Block</a>
                              <!--content mega-->
                              <div class="dropdown-menu mega w-100 px-3 py-0 font-weight-normal" aria-labelledby="navbarmega4">
                                <ul class="row list-unstyled border-end-last-lg-0">
                                  <!--menu list-->
                                  <li class="col-sm-6 col-lg-3 mb-3 mb-lg-0 px-0 py-2 py-lg-4">
                                    <!--title-->
                                    <h5 class="title-nav"><strong>News Block A</strong></h5>
                                    <!--link-->
                                    <ul class="list-unstyled mega-link">
                                      <li><a class="dropdown-item" href="#">Block - Layout 1</a></li>
                                      <li><a class="dropdown-item" href="#">Block - Layout 2</a></li>
                                      <li><a class="dropdown-item" href="#">Block - Layout 3</a></li>
                                      <li><a class="dropdown-item" href="#">Block - Layout 4</a></li>
                                      <li><a class="dropdown-item" href="#">Block - Layout 5</a></li>
                                    </ul>
                                  </li>
                                  <!--menu list-->
                                  <li class="col-sm-6 col-lg-3 mb-3 mb-lg-0 px-0 py-2 py-lg-4">
                                    <!--title-->
                                    <h5 class="title-nav"><strong>News Block B</strong></h5>
                                    <!--link-->
                                    <ul class="list-unstyled mega-link">
                                      <li><a class="dropdown-item" href="#">Block - Layout 6</a></li>
                                      <li><a class="dropdown-item" href="#">Block - Layout 7</a></li>
                                      <li><a class="dropdown-item" href="#">Block - Layout 8</a></li>
                                      <li><a class="dropdown-item" href="#">Block - Layout 9</a></li>
                                      <li><a class="dropdown-item" href="#">Block - Layout 10</a></li>
                                    </ul>
                                  </li>
                                  <!--menu list-->
                                  <li class="col-sm-6 col-lg-3 mb-3 mb-lg-0 px-0 py-2 py-lg-4">
                                    <!--title-->
                                    <h5 class="title-nav"><strong>News Block C</strong></h5>
                                    <!--link-->
                                    <ul class="list-unstyled mega-link">
                                      <li><a class="dropdown-item" href="#">Block - Layout 11</a></li>
                                      <li><a class="dropdown-item" href="#">Block - Layout 12</a></li>
                                      <li><a class="dropdown-item" href="#">Block - Layout 13</a></li>
                                      <li><a class="dropdown-item" href="#">Block - Layout 14</a></li>
                                      <li><a class="dropdown-item" href="#">Block - Layout 15</a></li>
                                    </ul>
                                  </li>
                                  <!--menu list-->
                                  <li class="col-sm-6 col-lg-3 mb-3 mb-lg-0 px-0 py-2 py-lg-4">
                                    <!--title-->
                                    <h5 class="title-nav"><strong>News Block D</strong></h5>
                                    <!--link-->
                                    <ul class="list-unstyled mega-link">
                                      <li><a class="dropdown-item" href="#">Block - Layout 16</a></li>
                                      <li><a class="dropdown-item" href="#">Block - Layout 17</a></li>
                                      <li><a class="dropdown-item" href="#">Block - Layout 18</a></li>
                                      <li><a class="dropdown-item" href="#">Block - Layout 19</a></li>
                                      <li><a class="dropdown-item" href="#">Block - Layout 20</a></li>
                                    </ul>
                                  </li>
                                  <!--end menu list-->
                                </ul>
                              </div>
                            </li><!--end mega menu-->
                          </ul>
                          <!--end left main menu-->

                          <!--Search form-->
                          <div class="navbar-nav ms-auto d-none d-lg-block">
                            <div class="search-box">
                              <!--hide search-->
                              <div class="search-menu no-shadow border-0 py-0">
                                <form class="form-src form-inline" action="#">
                                  <div class="input-group">
                                    <input type="text" class="form-control end-0" name="keywords" value="" placeholder="Search..." aria-label="search">
                                     <span class="icones">
                                        <svg xmlns="http://www.w3.org/2000/svg" class="ms-n4" width="1rem" height="1rem" fill="currentColor" viewBox="0 0 512 512"><path d="M221.09,64A157.09,157.09,0,1,0,378.18,221.09,157.1,157.1,0,0,0,221.09,64Z" style="fill:none;stroke:currentColor;stroke-miterlimit:10;stroke-width:32px"/><line x1="338.29" y1="338.29" x2="448" y2="448" style="fill:none;stroke:currentColor;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/></svg>
                                     </span>
                                  </div>
                                </form>
                              </div>
                              <!--end hide search-->
                            </div>
                          </div>
                          <!--end search form-->
                        </div>
                        <!--End navbar menu-->
                      </nav>
                    </div>
                  </div>
                  <!-- End main menu -->
                
              

Want to add mega menu ?

Read following documentation Mega menu

More header style ?


Header style 1 Header style 2 Header style 3 Header style 4 Header style 5 Header style 6 Header style 7 Header style 8 Header style 9 Header style 10