How to code a sticky footer using the html object, in HTML and CSS?

前端 未结 8 1546
刺人心
刺人心 2020-12-21 15:01

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: be

8条回答
  •  眼角桃花
    2020-12-21 15:23

    You can use position:fixed; and bottom:0px; to always, regardless of your scrolling state and content height, fix it to the bottom.

提交回复
热议问题