Streaming live at 10am (PST)

Footer behaviour


#1

I would like to have a footer like on the Instagram landing page. It isn’t a sticky footer (even if i resize the browser window it doesnt overlap with the content on the secren) but at the same time on larger screens it stays at the bottom of the page. Any ideas how to get the same behaviour?


#2

The simplest modern way is to set the body as a Flex container with flex-direction:column, and set a margin-top:auto to the footer.


#3

Thx for your answer. It what I did, and the foooter just stays at the bottom of the window overlaping with the content if I resize the browser window vertically. On the instagram landing page it doesnt happen.


#4

I tested it before answering, and it doesn’t overlap with the content above.


#5

and


#6

It did help. Thank you so much!