What is a sticky footer?

前端 未结 8 2164
醉话见心
醉话见心 2021-02-06 11:35

This question is a total noob one, but I can\'t get the difference between a normal footer and a sticky footer.

相关标签:
8条回答
  • 2021-02-06 12:15

    I assume a sticky footer stays at the same place on a screen all the time. In what context?

    0 讨论(0)
  • 2021-02-06 12:15

    A sticky footer is anchored to the bottom of the browser view port, as opposed to the bottom of the entire page. It retains its position relative to the bottom of the browser as the page scrolls.

    0 讨论(0)
  • 2021-02-06 12:15

    the sticky footer will always remain at a fixed position on the screen no matter you scroll or not.It will be visible all the time at that specific place.

    0 讨论(0)
  • 2021-02-06 12:20

    From CSS Tricks,

    The purpose of a sticky footer is that it "sticks" to the bottom of the browser window. But not always, if there is enough content on the page to push the footer lower, it still does that. But if the content on the page is short, a sticky footer will still hang to the bottom of the browser window.

    0 讨论(0)
  • 2021-02-06 12:22

    You can zoom out this page : http://maedeh.arianblog.com/ and also http://stackoverflow.com and compare what happens for their footers!

    hope it helps!

    0 讨论(0)
  • 2021-02-06 12:23

    Taken from CSS tricks:

    The purpose of a sticky footer is that it "sticks" to the bottom of the browser window. But not always, if there is enough content on the page to push the footer lower, it still does that. But if the content on the page is short, a sticky footer will still hang to the bottom of the browser window.

    Here is a clear idea of what a Sticky footer is: https://css-tricks.com/couple-takes-sticky-footer/ And http://css-tricks.com/sticky-footer/

    And an example: https://getbootstrap.com/docs/4.0/examples/sticky-footer/

    0 讨论(0)
提交回复
热议问题