Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

white space after the footer, only in firefox

Tags:

html

css

firefox

There seems to be random white space after the footer at the bottom of the site, but it only shows up in Firefox. The site pulls up fine in Safari and Chrome. When I try to use inspect element, the white space doesn't seem to fall under any tags. It doesn't seem tied to any footer tags either as removing them didn't change anything.

I'm using Ryan Fait's Sticky Footer solution for my footer. It seems to work fine on Chrome and Safari, but doesn't seem to work on Firefox.

You can test it at: http://www.edmhunters.com/martin-garrix/

Any ideas what I'm doing wrong?

like image 215
Yin Yang Avatar asked Dec 15 '14 13:12

Yin Yang


People also ask

Why is there white space after my footer?

This is because you don't have enough content on the page to push the footer down past the height of the screen resolution. If you add more content into a page it'll force it down and decrease the white space.

How do I get rid of the footer gap?

Re: I NEED TO COMPLETELY GET RID OF THE SPACE ALLOCATED TO HEADERS AND FOOTERS. On the Page Layout tab of the ribbon, in the Page Setup group, click Margins > Custom Margins... Set Top, Header, Bottom and Footer to 0, then click OK.


1 Answers

If you add

overflow:hidden

To the footer element, it seems to fix the problem in firefox. I got this idea from this question, so it's probably the same or a similar issue (collapsing margins).

like image 82
Collierre Avatar answered Oct 29 '22 02:10

Collierre