Well its simpel but im not gonna wright your code but i will help you get along
in your code you use marginTop to push down “.column-right-inner” we can still use that.
The only part your code misses is the check to see where the bottom of “.column-right-inner” is and what the position of the footer is.
So you need to create a variable with the bottom position of “.column-right-inner” (height + offset)
Then you will need to know when the footer starts so the offset top of the footer.
We now know where the bottom of the column-right-inner is and that of the top of the footer. So we only have to check if the column-right-inner is bigger then the footer.