With jQuery how do i find out if div one is over div two? Not, which z-index is higher but what div is visually over the other div.
one
two
You can use the offset method (here) to get the space from the document edges. Add the width and height of the elements, and substract the numbers.
offset