Push footer to bottom when page is not full

前端 未结 5 1871
名媛妹妹
名媛妹妹 2021-02-13 18:58

I\'m developing a mobile web app. This is the main structure from top to bottom: header div, menu div, content div, footer div. The header, menu and footer are constant and page

5条回答
  •  伪装坚强ぢ
    2021-02-13 19:41

    A CSS Sticky footer should solve your problem.

    Here's an example

    That is super easy to setup and use. It will force the footer down the page with the content, and if the content isn't big enough to fill the page it will stick to the bottom.

提交回复
热议问题