title: How can i Align two nav bars that are under each other?
body: <p>I tried placing two nav bars under each other but I am facing difficulty in aligning the second nav bar in respect to the first one. I didn't quite understand why the second nav bar does'nt float right.
  Below are my html and css codes. </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>.header_nav1 {
    display: block;
    float: right;
    color: #000;
    font-family: verdana;
    text-transform: uppercase;
    max-width: 1024px;
  }
  
  .header_nav1 ul li {
    padding-top: 10px;
    padding-right: 10px;
    list-style-type: none;
    display: inline;
  }
  
  .header_nav2 {
    display: block;
    padding: 50px;
  }
  
  .header_nav2 ul li {
    display: inline;
    list-style-type: none;
    float: right;
    padding-right: 15px;
    max-width: 1024px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;header class="header_navigation"&gt;
    &lt;div class="container"&gt;
      &lt;nav class="header_nav1"&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="/contact/"&gt;Contact&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="/search/"&gt;Search&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/nav&gt;
  
      &lt;nav class="header_nav2"&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="/investors/"&gt;INVESTORS&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="/career/"&gt;CAREER&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="/our portfolio/"&gt;OUR PORTFOLIO&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="/solutions/"&gt;RETAIL SOLUTIONS&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/nav&gt;
    &lt;/div&gt;
  &lt;/header&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thank you.</p>