How to code a sticky footer using the html object, in HTML and CSS?
问题 I'm using Less Framework 4 for two websites I'm designing. In both designs I want to apply a 5 pixel border both on top and bottom of the document. The problem: because of the styles applied to body , I'm applying the border-bottom and border-top to the html object, so the bottom border never sticks to the bottom of the page like it would happen in a usual sticky footer situation. Here are the screenshots for the two cases: Here's the (LESS) CSS I'm using for html and body: pastie.org/private