public marks

PUBLIC MARKS from mostpopular with tag offsettop

18 February 2007 17:45

JavaScript - Find position

by 4 others
The answer is: relative to the offsetParent. Although the browsers have sharp disagreements on the identity of the offsetParent, we do not really need to know, since the offsetParent property always contains a reference to the correct HTML element.

mostpopular's TAGS related to tag offsettop

abs +   border +   browsers +   coordinates +   curleft +   curtop +   doesn +   element +   elements +   function +   html +   layer +   link +   loop +   mozilla +   null +   object +   offset +   offsetleft +   offsetparent +   opera +   operator +   padding +   page +   position +   positioned +   properly +   relative +   return +   script +   test +   work +   wrap +