My site is structured like this:
----------------- header ----------------- | | side| main | | ----------------- footer
I am trying to get my โmainโ div to take the entire remaining height on the screen (and resize it while resizing the window), so that the โfooterโ always automatically translates to the bottom of the screen (it appears stuck at the bottom of the screen).
However, I want this to happen only if the contents of the "main" div are not at that height or even more. I am using jQuery, but it is difficult for me to calculate this correctly. Can someone give me a pointer in the right direction?
source share