I want to know the space between the bottom of Div A and the bottom of Body.
I read about $.offset()
, but this always returns me 0.
PS: I want only in relation to what appears on the screen. If the body is larger than the screen, I want it to be calculated only in relation to what appears on the screen.
PS2: Div A can be anywhere on the screen