What is a sticky footer?

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

+4
source share
8 answers

Adapted from CSS tricks :

The purpose of a sticky footer is that it “sticks” to the bottom of the browser window. But not always, if in order to raise the footer below, he still does it. But if the content on the page is short, the sticky footer will still be hung at the bottom in the browser window.

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

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

+4
source

I would suggest that a sticky footer is one that remains fixed at the bottom of the page, regardless of the length of the content. Like that .

+2
source

I assume that the sticky footer stays in one place on the screen all the time. In what context?

+1
source

The sticky footer is tied to the bottom of the browser viewing port, and not to the bottom of the entire page. It retains its position relative to the bottom of the browser when scrolling the page.

+1
source

the sticky footer will always remain in a fixed position on the screen no matter what you scroll or not. It will be displayed all the time in this particular place.

+1
source

You can zoom out on this page: http://maedeh.arianblog.com/ as well as /fooobar.com / ... and compare what happens for the footers!

hope this helps!

0
source

This sticky CSS footer code pushes the site footer toward the bottom of the browser window. This is valid CSS and HTML without any unpleasant hacks, so it works in all major browsers (even now IE5 and IE6 are not working).

How to use the CSS Sticky Footer on your website, 

Add the following CSS lines to your stylesheet. The negative value for the field in .wrapper is the same as the height of .footer and .push. A negative margin should always match the full height of the footer (including any additions or boundaries that you can add). Follow this HTML structure. Content cannot be outside the tags .wrapper and .footer div unless it is absolutely CSS. There should also be no content inside div.push, as it is a hidden element that “pushes” the footer so that it does not overlap anything.

0
source

From CSS tricks ,

The purpose of a sticky footer is that it “sticks” to the bottom of the browser window. But not always, if the page has enough content to raise the footer below, it does it anyway. But if the content on the page is short, the sticky footer will still be at the bottom of the browser window.

Sticky footer

0
source

Source: https://habr.com/ru/post/1333213/


All Articles