Position absolute element to where the mouse is clicked
I want to move a div by changing the left and top css elements to where it was clicked… it works fine when I get the X and Y positions but with the following situations:
I want to move a div by changing the left and top css elements to where it was clicked… it works fine when I get the X and Y positions but with the following situations: