|
This page shows how having a "position: relative" element (the #newTopLeft div) in your code changes the way an inner element set to "position: absolute" functions. The top: 0; left: 0 position is now going to be the upper top/left of the #newTopLeft div. What we need is a why to calculate the true top/left corner of the document. In order to do this, we need to do a negative offset based upon the #newTopLeft div. Click the button below to see where it moves.
Idealistically, we want to move the Cell 2 to the very top/left of the screennot to the top/left of the relative div. To do that, we need to get the offset of the parent elements w/relative positioning.
|