Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3450718
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:04:40+00:00 2026-05-18T09:04:40+00:00

Html <div id=video></div> <p class=coordspls>Too much overflow!</p> Pseudo Code: Get x position of .coordspls

  • 0

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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T09:04:41+00:00Added an answer on May 18, 2026 at 9:04 am

    .offset() takes a setter as well, the same object format as it returns, so you can do this:

    $("#video").css({ position: 'absolute' }).offset($("p.coordspls").offset());
    

    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 the top and left to match.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

$content gives the html code like: <p>text</p> <p><img ... /></p> <div class=video>...</div> or just
I have 3 html box as follow: <div class=tabs> <ul class=tabNav> <li><a href=#video>Video Gallery</a></li>
I have this code : HTML <div class="box_video"> <object width="330" height="290" type="application/x-shockwave-flash" data="http://www.youtube.com/v/KEkR1ox_K10?version=3&amp;f=user_uploads&amp;app=youtube_gdata&amp;rel=1&amp;border=0&amp;fs=1&amp;autoplay=0" style="visibility:
My code is as below. Html Portion <div id=div_video> <div class=div_vol> <a href=# onclick=sound_adjustment()><img
$('div.box').html(hello) puts the word hello inside all my div's of class 'box'. They all
I have this piece of HTML: <div class=embed> <iframe width=300 height=200 frameborder=0 allowfullscreen= src=http://www.youtube.com/embed/123456></iframe>
In html below, how can I just select/get the date by a given class?
This code in a partial: <div class =vote_updated> <p><%= event.actor %> <% case event.subject.value
if there's a html like the following <div class=comment> [youtube]http://www.youtube.com/watch?v=videoid1[/youtube] random text </div> <div
I've the following HTML <html> <body> <div style=background:white;width:620px; height: 464px; overflow: hidden;> <style>.v{width:100%;background: red;border:0px;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.