Say there are some "absolutely positioned" elements whose coordinates(unit: %) are grabbed with Ajax.
Sometimes a certain edge of them sticks out of the screen, like when they are too right or too top. I cannot position them as right: 0
because their parent element is already "absolutely positioned", hence that won't work.
How can one prevent an element from ever sticking out of screen, given its direct parent element is not the document.body
?