title: Float a navbar <li> element to right
body: <p>i need to float my a elements inside a li tag to the right. Here below i have attached HTML and CSS file please have a look. I need a navbar with elements floated to left.</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-css lang-css prettyprint-override"><code>* {
    margin: 0px;
    padding: 0px;
  }
  
  div.nav {
    background-color: #009866;
    padding: 10px;
  }
  
  .nav ul {
    list-style-type: none;
  }
  
  .nav li {
    float: right;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;header&gt;
    &lt;div class="nav"&gt;
      &lt;ul class="navbar"&gt;
        &lt;li&gt;&lt;a href="#"&gt;Login&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;Sign Up&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/header&gt;</code></pre>
  </div>
  </div>
  </p>