Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Please help! I have a problem with this jQuery code Reply To: Please help! I have a problem with this jQuery code

#186919
itsLeon
Participant

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.

http://jsfiddle.net/ht6784dt/1/