title: Position caret on dropdown menu Bootstrap 4
body: <p>How can I position a caret out of the drop-down menu? This is what I'm getting until now. </p>
  
  <p><a href="https://i.stack.imgur.com/ozysw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ozysw.png" alt=""></a></p>
  
  <p>This is what I'm trying to get. I'm trying to position the arrow like this dropdown menu on Github.</p>
  
  <p><a href="https://i.stack.imgur.com/6XoLf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6XoLf.png" alt=""></a></p>
  
  <p>This is the code of my dropdown menu:</p>
  
  <pre><code>&lt;div class="container"&gt;
    &lt;div class="row"&gt;
      &lt;div class="col-md pl-4 user-dropdown"&gt;
        &lt;div class="dropdown btn-group"&gt;
          &lt;a class="navbar-brand dropdown-toggle" href="#" id="bd-versions" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"&gt;
            &lt;i class="fas fa-user"&gt;&lt;/i&gt;
          &lt;/a&gt;
          &lt;ul class="dropdown-menu text-center mt-2"&gt;
            &lt;span&gt;&lt;i class="caret-up fas fa-caret-up ml-2"&gt;&lt;/i&gt;&lt;/span&gt;
            &lt;li&gt;
              &lt;a href="{{ route('login') }}"&gt;
                &lt;button type="button" class="btn btn-warning text-dark"&gt;Sign-in now&lt;/button&gt;
              &lt;/a&gt;
            &lt;/li&gt;
            &lt;div class="dropdown-divider"&gt;&lt;/div&gt;
            &lt;li&gt;
              &lt;h6&gt;Don't have an account?&lt;/h6&gt;
              &lt;a href="{{ route('register') }}"&gt;Sign-up here&lt;/a&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="col-md"&gt;
        &lt;span&gt;&lt;a class="navbar-brand" href="#"&gt;&lt;i class="fas fa-shopping-cart"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/span&gt;
      &lt;/div&gt;
      &lt;div class="col-md"&gt;
        &lt;span&gt;&lt;a class="navbar-brand" href="#"&gt;&lt;i class="fas fa-heart"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>