1

I'm having a slight problem with a footer containing particles.js. Whenever particle.js is added to the footer a 3px white space appears below the footer. This doesn't happen when particles.js is not in the footer, so it has to be directly related to particles.js (or the css applied to it).

I've created a mock up in jsfiddle, one shows the problem with particles.js and another shows the problem gone when particles.js is removed.

With particles.js: http://jsfiddle.net/hsy8jbwc/2/

Without particles.js: http://jsfiddle.net/hsy8jbwc/3/

    #footer {position: relative; bottom: 0; width: 100%; height: 60px; line- 
    height: 60px; background-color: transparent}
    #footer .row {display:flex; align-items:center; justify-content: space- 
    around;}
    #footer-particles {position: absolute; height: 100%; width: 100%; background- 
    color: salmon; z-index: -1;}
    <footer id="footer">
       <div id="footer-particles"></div>
       <div class="container">
          <div class="row">
             <span class="text-muted">FOOTER</span>
          </div>
        </div>
    </footer>
CDspace
  • 2,639
  • 18
  • 30
  • 36

0 Answers0