title: Bootstrap navbar - align button vertically
body: <p>I'm trying to align a button inside a nav but I can't figure out how to do it. I placed a logo with the height of 50px and aligned other nav items vertically with the line-height property of 50 px. Right now it looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/oqM6k.jpg" rel="nofollow"><img src="https://i.stack.imgur.com/oqM6k.jpg" alt="enter image description here"></a></p>
  
  <p>When I add a line height to the button as well, the border gets streched out. </p>
  
  <p>Here is my HTML:</p>
  
  <pre><code>&lt;nav class="navbar navbar-default navbar-fixed-top"&gt;
          &lt;div class="container"&gt;
              &lt;!-- Brand and toggle get grouped for better mobile display --&gt;
              &lt;div class="navbar-header"&gt;
                  &lt;button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"&gt;
                      &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
                      &lt;span class="icon-bar"&gt;&lt;/span&gt;
                      &lt;span class="icon-bar"&gt;&lt;/span&gt;
                      &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;/button&gt;
                  &lt;a class="navbar-brand" href="#"&gt;
                      &lt;img alt="Dolm IT" src="img/logo.svg" height="50px"&gt;
                  &lt;/a&gt;
              &lt;/div&gt;
  
              &lt;!-- Collect the nav links, forms, and other content for toggling --&gt;
              &lt;div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"&gt;
  
  
                  &lt;ul class="nav navbar-nav navbar-right"&gt;
                      &lt;li&gt;&lt;a href="#"&gt;services&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;showcase&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="#"&gt;our team&lt;/a&gt;&lt;/li&gt;
                      &lt;button type="button" class="btn btn-default navbar-btn"&gt;get in touch&lt;/button&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;
              &lt;!-- /.navbar-collapse --&gt;
          &lt;/div&gt;
          &lt;!-- /.container-fluid --&gt;
      &lt;/nav&gt;
  </code></pre>
  
  <p>And here's my CSS:</p>
  
  <pre><code>  /*nav*/
  
      .navbar {
          background-color: transparent;
          border: 0;
      }
  
      .navbar-default .navbar-nav &gt; li &gt; a {
          color: #01787e;
          font-family: 'Akrobat-ExtraBold';
          font-size: 1rem;
          text-transform: uppercase;
          letter-spacing: 2px;
          margin-right: 50px;
      }
  
      .navbar-nav li a {
          line-height: 50px;
      }
  
  
      /*buttons*/
  
      .btn-default {
          color: #01787e;
          font-family: 'Akrobat-ExtraBold';
          font-size: 1rem;
          text-transform: uppercase;
          letter-spacing: 2px;
      }
  
      .btn {
          border: 2px solid #01787e;
          border-radius: 5px;
          padding: 7px 30px;
      }
      }
  </code></pre>
  
  <p><a href="http://dolm.ragne.me/" rel="nofollow">You can see the issue here.</a> Thank you for your help.</p>