title: How to remove the space between a unordered list and a div
body: <p>I was wondering how to remove the vertical space between a unordered list and div. I know it's possible with using - margins, but I have a feeling that isn't really a clean method. </p>
  
  <p>This is my code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code> .menu {
     list-style-type: none;
     background-color: #660066;
   }
   .menu li {
     display: inline;
     padding-left: 40px;
     padding-right: 40px;
   }
   .div {
     width: 100%;
     height: 500px;
     background-color: #660066;
   }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;nav&gt;
    &lt;ul class="menu"&gt;
      &lt;li&gt;Check 1&lt;/li&gt;
      &lt;li&gt;Check 2&lt;/li&gt;
      &lt;li&gt;Check 3&lt;/li&gt;
      &lt;li&gt;Check 4&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/nav&gt;
  &lt;article class="div"&gt;</code></pre>
  </div>
  </div>
  </p>