简体   繁体   中英

bootstrap navbar-brand responsive ness issue

I have the following js fiddle . It works perfectly fine, however the issue is that on mobile version/width the navbar becomes two lines (just try resizing the window smaller). How can I make the navbar height the same size on mobile and desktop version?

Here's the navbar code:

 <div class="navbar-header">
               <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
                <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 nav-title-logo" href="{{ url_host }}{{ path('ShopiousMainBundle_homepage') }}">  </a>

           </div>

Try with this CSS

  .navbar {
    max-height: 50px; 
}

DEMO

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM