Skip to content

Instantly share code, notes, and snippets.

@spilliams
Created May 14, 2012 22:13

Revisions

  1. spilliams revised this gist May 31, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions stickyfoundationfooter.js
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    /* Sticky Footer Foundation fix */
    $(".footer, .push").height($(".footer .row").height()+"px");
    $(".wrapper").css({'margin-bottom':(-1*$(".footer .row").height())+"px"});
    window.onresize = function(){
    $(".footer, .push").height($(".footer .row").height()+"px");
    $(".wrapper").css({'margin-bottom':(-1*$(".footer .row").height())+"px"});
  2. spilliams created this gist May 14, 2012.
    5 changes: 5 additions & 0 deletions stickyfoundationfooter.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    /* Sticky Footer Foundation fix */
    window.onresize = function(){
    $(".footer, .push").height($(".footer .row").height()+"px");
    $(".wrapper").css({'margin-bottom':(-1*$(".footer .row").height())+"px"});
    }