What is the simplest way to make an HTML footer “sticky”? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the simplest way to make an HTML footer “sticky”?

My aim is to have an HTML footer that sticks to the bottom (on a series of existing web pages). I am looking for a simple solution that doesn't require changing much code. Do you have experience with this issue or an idea? Thanks for your help!

26th Oct 2020, 3:43 PM
Max Harder
Max Harder - avatar
2 Answers
+ 3
Does setting css position: sticky; bottom: 0; for your footer does what you want? https://www.w3schools.com/css/css_positioning.asp
26th Oct 2020, 4:12 PM
Volodymyr Chelnokov
Volodymyr Chelnokov - avatar
0
Perfect, thank you!
26th Oct 2020, 5:30 PM
Max Harder
Max Harder - avatar