title: Nav bar not taking background color
body: <p>My navbar is not taking background colour because of background colour the whole page?
  Can you explain why is this happening and how to fix this?</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>* {
    background-color: rgb(245, 244, 182);
    box-sizing: border-box;
  }
  
  .nav {
    background-color: red;
    border: 2px solid blue;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;header&gt;
    &lt;ul class="nav"&gt;
      &lt;li&gt;home&lt;/li&gt;
      &lt;li&gt;about&lt;/li&gt;
      &lt;li&gt;contact us&lt;/li&gt;
      &lt;li&gt;services&lt;/li&gt;
      &lt;/nav&gt;
  &lt;/header&gt;</code></pre>
  </div>
  </div>
  </p>