title: Floating 4 elements left and right in an order
body: <p>I am having an issue while setting up navigation in an order. I have 4 div tags and it should be in an order as left, right, right, left. so I expect my navigation should look like this
   <a href="https://i.stack.imgur.com/9yw1S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9yw1S.png" alt="expectation"></a></p>
  
  <p>I am having issue with float right. I have tried this</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>.footer {
  
  }
  
  li {
    background-color: yellow;
    display: inline-block;
  }
  
  .one {
    background-color: orange;
  }
  
  .two {
  
  }
  
  .copy {
    background-color: blue;
  }
  
  .two, .three {
    float: right;
    background-color: aqua;
    clear: right;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
    &lt;body&gt;
      &lt;footer class="footer"&gt;
        &lt;div class="one" &gt;
          &lt;img src="https://via.placeholder.com/250x100" alt="footer" /&gt;
        &lt;/div&gt;
        &lt;div class="two"&gt;
          &lt;ul&gt;
            &lt;li&gt;privacy&lt;/li&gt;
            &lt;li&gt;terms and conditions&lt;/li&gt;
            &lt;li&gt;contact us&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
        &lt;div class="three"&gt;
          &lt;ul&gt;
            &lt;li&gt;instagram&lt;/li&gt;
            &lt;li&gt;facebook&lt;/li&gt;
            &lt;li&gt;twitter&lt;/li&gt;
        &lt;/div&gt;
        &lt;div class="clear"&gt;&lt;/div&gt;
        &lt;div class="copy"&gt;
          &amp;copy; 2020 mysite.com
        &lt;/div&gt;
      &lt;/footer&gt;
    &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>somehow float is not keeping my unordered list to the top. I have searched through the stackoverflow. but I couldn't find any answer. It will be more helpful if I get this work.</p>