title: Removing a margin from a footer with CSS
body: <p>I want the footer to shown only when the page is fully scrolled down and not stay fixed on the screen, as it currently does.</p>
  <p>The problem is that on either side, the footer has a margin of a few pixels. How do I remove 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>footer {
    width: 100%;
    height: 200px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../assets/footer.png");
    background-position: center;
    color: white;
    text-align: center;
    display: table;
  }
  
  footer&gt;p {
    display: table-cell;
    vertical-align: middle;
    font-family: Lato, sans-serif;
    font-size: 11pt;
    font-weight: 400;
    line-height: 1.6667;
    width: 100%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;h1&gt; Some text &lt;/h1&gt;
  
  &lt;footer&gt;
    &lt;p&gt;Copyright &amp;copy; &lt;a href="link" class="white_link"&gt;Link&lt;/a&gt; 2021. All Rights Reserved.
    &lt;/p&gt;
  &lt;/footer&gt;</code></pre>
  </div>
  </div>
  </p>