title: Float right is not affecting the layout of my navbar
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.nav {
    display: flex;
    background: dodgerblue;
    position: sticky;
    top: 0;
  }
  
  .links-container {
    display: flex;
    float: right;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;header class="nav"&gt;
    &lt;h1 class="logo"&gt;Learn to code&lt;/h1&gt;
    &lt;div class="links-container"&gt;
      &lt;p&gt;test&lt;/p&gt;
      &lt;p&gt;test&lt;/p&gt;
      &lt;p&gt;test&lt;/p&gt;
      &lt;p&gt;test&lt;/p&gt;
      &lt;p&gt;test&lt;/p&gt;
    &lt;/div&gt;
  &lt;/header&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>I have tried position relative on the link container and that didn't work either.</p>