title: Centering navbar-brand image with centered navbar
body: <p>I'm just learning <strong>Bootstrap 3</strong> and I want to use that in my website so it's still comfortable to access from mobile devices.</p>
  
  <p>I want to achieve something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/l91LL.jpg" alt="enter image description here"></p>
  
  <p>but this is as far as I get.
  This is the code:
  <a href="http://jsfiddle.net/kenanchristian/6sc7c6t2/" rel="nofollow noreferrer">jsfiddle</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.navbar-brand {
      position: absolute;
      width: 100%;
      left: 0;
      top: 0;
      text-align: center;
      margin: auto;
      height:30px;
  }
  
  .navbar-brand:hover,
  .navbar-brand:focus {
     text-decoration: none;
  }
  
  .navbar-brand &gt; img {
     display: inline-block;
     margin:auto;
  }
  
  @media (min-width: 768px) {
    .navbar &gt; .container .navbar-brand,
    .navbar &gt; .container-fluid .navbar-brand {
      margin-left: -15px;
    }
  }
  
  .navbar .divider-vertical {
     height: 50px;
     margin: 0 9px;
     border-right: 1px solid #ffffff;
     border-left: 1px solid #f2f2f2;
  }
  
  .navbar-inverse .divider-vertical {
     border-right-color: #222222;
     border-left-color: #111111;
  }
  
  @media (max-width: 767px) {
    .navbar-collapse .nav &gt; .divider-vertical {
       display: none;
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet"/&gt;
  &lt;body&gt;
    
     &lt;div class="navbar navbar-default navbar-static-top"&gt;
       &lt;div class="container"&gt;    
         &lt;a href="#" class="navbar-brand"&gt;&lt;img src="image/nav_logo.png"/&gt;&lt;/a&gt; 
         &lt;button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse"&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;div class="collapse navbar-collapse navHeaderCollapse"&gt;    
        &lt;ul class="nav navbar-nav navbar-left"&gt;
       &lt;li class="active"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
       &lt;li class="divider-vertical"&gt;&lt;/li&gt;
       &lt;li&gt;&lt;a href="#"&gt;Product&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;    
        &lt;ul class="nav navbar-nav navbar-right"&gt;
       &lt;li&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt;
       &lt;li class="divider-vertical"&gt;&lt;/li&gt;
       &lt;li&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;    
         &lt;/div&gt; 
      &lt;/div&gt;
   &lt;/div&gt;
   &lt;div class="navbar navbar-inverse navbar-fixed-bottom"&gt;
   &lt;div class = "container"&gt;
    &lt;div class="social"&gt;
       &lt;a class="pull-left icon" href="#" data-icon = "f"&gt;&lt;/a&gt;
       &lt;a class="pull-left icon" href="#"  data-icon = "i"&gt;&lt;/a&gt;
    &lt;/div&gt;
   &lt;/div&gt;
  &lt;/div&gt; 
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>