title: How do I make a logo overlap the navbar in bootstrap?
body: <p>I have a navbar in bootstrap, it has a logo image centered in the middle. I would like to have the image be larger and stretch beyond the navbar, but instead the navbar just stretches to fit the logo's size. Like this:
  <a href="https://i.stack.imgur.com/T7iuu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T7iuu.png" alt="example."></a></p>
  
  <p>And here's my code, for the navbar:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;nav class="navbar navbar-expand-lg navbar-dark bg-dark"&gt;
    &lt;div class="navbar-collapse collapse w-100 dual-collapse2 order-1 order-md-0"&gt;
      &lt;ul class="navbar-nav ml-auto text-center"&gt;
        &lt;li class="nav-item active"&gt;
          &lt;a class="nav-link" href="#"&gt;Link&lt;/a&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
    &lt;div class="mx-auto my-2 order-0 order-md-1 position-relative"&gt;
      &lt;a class="mx-auto" href="#"&gt;
        &lt;img src="http://placehold.it/120/ccff00" class="rounded-circle" height="120" width="120"&gt;
      &lt;/a&gt;
      &lt;button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".dual-collapse2"&gt;
              &lt;span class="navbar-toggler-icon"&gt;&lt;/span&gt;
          &lt;/button&gt;
    &lt;/div&gt;
    &lt;div class="navbar-collapse collapse w-100 dual-collapse2 order-2 order-md-2"&gt;
      &lt;ul class="navbar-nav mr-auto text-center"&gt;
        &lt;li class="nav-item"&gt;
          &lt;a class="nav-link" href="#"&gt;Link&lt;/a&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>What do I need to do to make the logo overlay like I want it to? Huge thanks if anyone can figure this out!</p>