Skip to main content
higgsyd
Inspiring
December 1, 2020
Question

This gap is driving me crazy!

  • December 1, 2020
  • 2 replies
  • 302 views

At the bottom of this page conald marlow there is a gap between the final ruler line and the top of the footer.  I cannot see why this gap exists.

 

I have a slight suspicion it may be  something to do with my ‘sticky footer’ which I have copied from css tricks  (I am using the first of the five methods described there).  I say  this because there is a div in that gap used by the ‘sticky footer’ with a class of 'push'  but it’s only 50px but that does not account for the rest of the gap.

 

There are other pages in my site that do not have such a gap, take a look at  annie or harry 

 

I have validated the html and the three css files involved and looked at the page with Firefox Developer tools but still cannot figure out why that gap exists – help!

    This topic has been closed for replies.

    2 replies

    Community Expert
    December 1, 2020

    Per the other comment the spacing seems the same to me in browsers tested.   If you are seeing different can you post a screenshot and include your browser + version?

    higgsyd
    higgsydAuthor
    Inspiring
    December 1, 2020

    thanks chaps for taking a look.  here's what I see in FireFox 83

    higgsyd
    higgsydAuthor
    Inspiring
    December 1, 2020

    also I just discovered if I alter the browser window and bring down from full-screen the gap can be made to vanish.  Check out this video (if it loads)

    Jon Fritz
    Community Expert
    Community Expert
    December 1, 2020

    Hmm, I don't see any difference in the space between the <hr> and footer in any of those pages. It's using the default 10 pixel margin for all of them as far as I can see.

    Adding...

    hr{margin:0;}

    ...to your css will get rid of it. Though the elements might be a bit scrunched together if you do.