I\'m trying to use jQuery to detect the position of a div (#olddiv), so I can use that position to place another div (#newdiv) exactly below it. The ri
#olddiv
#newdiv
There is a pretty cool plugin getting developed by the jQuery UI team that helps with position.
Lets you do something like this:
$(".menu").position({ my: "left top", at: "left bottom", of: ".menubutton" });