I need some assistance with positioning a pop-up using its bottom attribute. My goal is to place the pop-up just above an element that is currently being hovered over by the mouse. Here is my code snippet:
$('#pop-up').css({
bottom: currentlyMouseOverElement.offset().top + "px",
});
The issue I am facing is that the pop-up is displayed, but it is not positioned directly above the element that is currently being hovered over. It appears to be located quite far above it.
Is there something crucial that I might be overlooking? If so, could someone provide me with some guidance on how to resolve this problem?
Thank you in advance. Horace