title: Bootstrap 3 Fixed Nav - Hide/Resize Logo
body: <p>Using the latest version Bootstrap, I am wanting to replace the branding area text with a logo. On my desktop, it looks perfect, on my iPhone, the logo appears under the small collapse menu, whereas it should be beside it (to the left of it). If I make the logo smaller, it works fine on the iPhone, but the small logo is too small for the desktop site. I thought by adding the img-responsive class to the logo, it would shrink accordingly, but that fails. If you want to replicate this, the logo is 276px wide 40px high.</p>
  
  <p>Everything appears fine on the iPhone in horizontal orientation (it is strictly a problem when viewing in vertical, which is naturally the way most people hold their phone).</p>
  
  <p>Here is the related code (you will notice near the bottom, there is a purchase button, this automatically gets hidden on the iPhone, which would suffice for the logo if there is no other option). Mind, the ultimate solution would be to have the logo shrink based on screen size.</p>
  
  <pre><code>    &lt;!-- Fixed navbar --&gt;
      &lt;div class="navbar navbar-default navbar-fixed-top"&gt;
          &lt;div class="container"&gt;
              &lt;div class="navbar-header"&gt;
                &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"&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="index.php"&gt;&lt;img class="img-responsive" src="img/logo.png" alt=""&gt;&lt;/a&gt;
              &lt;/div&gt;
              &lt;div class="navbar-collapse collapse"&gt;
                  &lt;ul class="nav navbar-nav"&gt;
                      &lt;li class="active"&gt;&lt;a href="index.php"&gt;Home&lt;/a&gt;&lt;/li&gt;
                      &lt;li class="dropdown"&gt;
                          &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;Application &lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt;
                          &lt;ul class="dropdown-menu"&gt;
                              &lt;li&gt;&lt;a href="features.php"&gt;Features&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="screenshots.php"&gt;Screenshots&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="demos.php"&gt;Demos&lt;/a&gt;&lt;/li&gt;
                              &lt;li class="divider"&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="purchase.php"&gt;Purchase&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="licensing.php"&gt;Licensing Model&lt;/a&gt;&lt;/li&gt;
                          &lt;/ul&gt;
                      &lt;/li&gt;
                      &lt;li class="dropdown"&gt;
                          &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;Documentation &lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt;
                          &lt;ul class="dropdown-menu"&gt;
                              &lt;li&gt;&lt;a href="documentation.php#tab1"&gt;Version Info&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="documentation.php#tab2"&gt;System Requirements&lt;/a&gt;&lt;/li&gt;
                              &lt;li class="divider"&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="documentation.php#tab3"&gt;Installation Guide&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="documentation.php#tab4"&gt;Integration Guide&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="documentation.php#tab5"&gt;Frontdesk Manual&lt;/a&gt;&lt;/li&gt;
                          &lt;/ul&gt;
                      &lt;/li&gt;
                      &lt;li class="dropdown"&gt;
                          &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;Support &lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt;
                          &lt;ul class="dropdown-menu"&gt;
                              &lt;li&gt;&lt;a href="/support/knowledgebase.php"&gt;Knowledgebase&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="/support/index.php?a=add"&gt;Submit Ticket&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="/support/ticket.php"&gt;View Ticket Status&lt;/a&gt;&lt;/li&gt;
                              &lt;li class="divider"&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="services.php#tab1"&gt;Installation Service&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="services.php#tab2"&gt;Development Services&lt;/a&gt;&lt;/li&gt;
                          &lt;/ul&gt;
                      &lt;/li&gt;
                      &lt;li class="dropdown"&gt;
                          &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;Contact &lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt;
                          &lt;ul class="dropdown-menu"&gt;
                              &lt;li&gt;&lt;a href="faq.php"&gt;Presales Questions&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="contact.php"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
                          &lt;/ul&gt;
                      &lt;/li&gt;
                      &lt;li class="dropdown"&gt;
                          &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;Legal &lt;b class="caret"&gt;&lt;/b&gt;&lt;/a&gt;
                          &lt;ul class="dropdown-menu"&gt;
                              &lt;li&gt;&lt;a href="legal.php#tab1"&gt;Privacy Policy&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="legal.php#tab2"&gt;Terms of Use&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="legal.php#tab3"&gt;Site Security&lt;/a&gt;&lt;/li&gt;
                              &lt;li class="divider"&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="legal.php#tab4"&gt;Money Back Guarantee&lt;/a&gt;&lt;/li&gt;
                          &lt;/ul&gt;
                      &lt;/li&gt;
                  &lt;/ul&gt;
                  &lt;a href="purchase.php"&gt;&lt;button type="button" class="btn btn-success" style="margin-top: 8px; margin-left: 30px;"&gt;Purchase&lt;/button&gt;&lt;/a&gt;
              &lt;/div&gt;
              &lt;!--/.nav-collapse --&gt;
  </code></pre>