Html
<div id="video"></div>
<p class="coordspls">Too much overflow!</p>
Pseudo Code:
Get x position of .coordspls save to cox
Get y position of .coordspls save to coy
Set x position of #video to cox
Set y position of #video to coy
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
.offset()takes a setter as well, the same object format as it returns, so you can do this:You can give it a try here, all this does it make sure the position is
absolute(remove the.css()call if this is already the case), then sets thetopandleftto match.