How to remove white space between nav and jumbotron?
<p>Apologies if this is a stupid question! I have read all the questions around this and tried the solutions but I still can't get my white gap to disappear.</p>

<p>I'm learning HTML &amp; CSS through Codecademy and when I copied my code into codepen, a white space appeared between the nav and the jumbotron.</p>

<p>I've tried removing margins but I can't get it to disappear. Thanks in advance.</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>.container {
  max-width: 940px;
  margin: 0;
  padding: 0;
}

.header {
  background-color: #30627E;
  display: inline-block;
  width: 100%;
  margin-bottom: 0;
  padding-bottom: 0;
}

.header ul {
  list-style: none;
  text-align: center;
  padding: 0;
  margin-bottom: 0;
  color: #fff;
  display: inline-block;
}

.nav li {
  color: #fff;
  display: inline-block;
  padding: 20px 30px;
  text-align: center;
  font-size: 20px;
  margin-bottom: 0;
}

.navbar-nav {
  margin-bottom: 20px;
 }

.header .main {
  background-color: #E52364;
  font-size: 28px;
  margin: 0;
}

.jumbotron {
  background: url(https://s3.amazonaws.com/codecademy-content/projects/adoptly/bg.jpg) repeat center center;
  background-size: cover;
  height: 500px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  text-align: center; 
}

.jumbotron h1 {
  color: #E52364 !important;
  text-align: center;
  font-weight: bold;
  margin-top: 0;
  padding: 0;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>    &lt;div class="header"&gt;
      &lt;div class="container"&gt;
        &lt;div class="row"&gt;
       &lt;ul class="nav navbar-nav"&gt;
         &lt;li class="main"&gt;Adoptly&lt;/li&gt;
         &lt;li&gt;About&lt;/li&gt;
         &lt;li&gt;Animals&lt;/li&gt;
         &lt;li&gt;Blog&lt;/li&gt;
         &lt;li&gt;Events&lt;/li&gt;
       &lt;/ul&gt;
     &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
     

    &lt;div class="jumbotron"&gt;
      &lt;div class="container"&gt;
        &lt;h1&gt;Meet your new best friend.&lt;/h1&gt;
      &lt;/div&gt;
    &lt;/div&gt;</code></pre>
</div>
</div>
</p>