title: Two divs with background
body: <p>I have navigation on my site with background-color, opacity 0.2. I want to make a separate background for list links menu and make left part of navigation with logo to be floated with own background till next div. I've tried a bunch of methods but all them seem to be imperfect. Left side with logo background just occupies space under text not whole div as I need to. </p>
  
  <p>Here's example:</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-js lang-js prettyprint-override"><code>$('.navigation ul li a').on('mouseover', function() {
    $(this).parent().addClass('navigation-hover');
  }).on('mouseout', function() {
    $(this).parent().removeClass('navigation-hover');
  })</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.navigation {
    font-size: 3em;
    height: 70px;
    position: fixed;
    right: 0;
    left: 0;
  }
  
  .navigation-logo {
    float: left;
    background-color: rgba(0, 0, 0, 0.2);
  }
  
  .navigation ul {
    display: inline;
  }
  
  .navigation ul li {
    float: right;
    font-size: 0.5em;
    line-height: 60px;
    height: 70px;
    display: inline-block;
    text-align: center;
    padding-left: 10px;
    color: #ffffff;
    padding-left: 10px;
    background-color: rgba(0, 0, 0, 0.2);
  }
  
  .navigation-hover {
    background: transparent !important;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="navigation"&gt;
    &lt;div class="navigation-logo"&gt;
      &lt;a class="navigation-logo"&gt;logo&lt;/a&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;a href=""&gt;link1&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=""&gt;link2&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=""&gt;link3&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=""&gt;link4&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>