Instead of absolutely positioning (I have to do that, don’t ask why) elements over other elements by searching through, finding the parent elements and then prepending to them, is it possible to find the locations of certain elements by coordinates and then simply recalculate coordinates of the replacements when the window is resized?
Instead of absolutely positioning (I have to do that, don’t ask why) elements over
Share
You can do this by subtracting your margins.
If you were to append a child into a container that already contained a child just subtract the same height as the existing child from the new childs margin.
Notice the margin-top:-100px below
If you prepend the do a margin-bottom:-100px