For the impatient: Download script here , Read Instructions under the Solution header
So every time I do a new master page with a footer, I am stuck with a page that has no content and the footer is floating way above the bottom of the page like so.
This is using the OOTB V4.master (a copy of course), and my footer placed right above the Developer Dashboard so it’s the last thing inside the #s4-bodyContainer.
(Style put inline for demonstration purposes)
Even if you go outside the #s4-bodyContainer and place the footer, as the last element in s4-workspace you’ll get the same effect. (I’ve added comments this time to show where I am in the master page)
If you go below the s4-workspace, you will get a very undesirable effect, because SharePoint only detects things inside the workspace and uses that to resize the page. SO you’ll see your footer for a second then it will be pushed out of frame!
Step 1) To utilize this script the placement of your footer must be between the s4-bodyContainer & s4-workspace.
(Comments were added by my and will not be there on the default master page)
Step 3 ) Add the js file to your SharePoint site
Step 4 ) Add the reference in the Master Page, somewhere before the </head> tag
Once you complete all the steps your footer will now be properly placed at the bottom of a short page. It will even update itself when the page is stretched or shrunk.