Sticky footer with long and short content?

Hey all i’m using sticky footer for when i hae short content but my div flows over my footer when i have long content…is there a way to have both sticky footer for long and short content??

As my content will be dynamic so i won’t know what it will be at this stage.

Hopefully this makes sense…if not i can explain more in detail if need be.