DEV Community

Discussion on: How to make footer stick at the bottom of web page.

Collapse
 
ganymede profile image
Rudy Reeves • Edited

I think flex-grow: 1; on the main content (the <article>) would achieve a similar result without margin and also allow the main content to fill the empty space

Collapse
 
iamludal profile image
Ludal 🚀

I often use this one, it seems more intuitive than having an automatic margin on the footer 🤔

Collapse
 
chakudi profile image
Vaishali JS

I also used flex-grow to achieve this effect. Knowing about margin technique is new for me.