As Giberno wrote in his commentary, use an empty div to fill in the space occupied by the footer (and thus prevent the last line (s) of text falling and hidden by the footer. Nice and easy: no scripts needed!
div#footer{ position:fixed; bottom:0px; height:20px; } div#empty-space{ height:20px; }
And HTML:
Put your page here ... <div id="empty-space"/> <div id="footer">footer</div>
See this jsFiddle for a working example.
source share