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 6613239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:11:40+00:00 2026-05-25T20:11:40+00:00

If you look here: http://dev.driz.co.uk/tips/ You will see I am experimenting with some Facebook

  • 0

If you look here: http://dev.driz.co.uk/tips/ You will see I am experimenting with some Facebook ripoff tooltips.

What I’m trying to learn is how to position the tip relative to another object. So for example if a user hovered the red box it would show the relevant tooltip but in relation to the object with the arrow pointing at the redbox. I’ve thought about using the outerWidth and height or even the position() method. but not sure how I would use it. Also need to position the arrow in relation as well such as where on the box and move it up and down if the user scrolls the page ie. moves the element.

If someone can provide some examples that’d be awesome.

NOTE I’m not trying to do the hover bit at the moment just trying to get the tip to position itself in relation to the other object.

Can anyone help?
Thanks

  • 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-25T20:11:41+00:00Added an answer on May 25, 2026 at 8:11 pm
    var top = $("#link").offset().top;
    top += $("#link").height();
    var left = $("#link").offset().left;
    $("#tip").css({
        top: top+"px",
        left: left + "px"
    });
    

    This code positions #tip relative to the #link. It’s very likely that you want to show #tip below #link, hence top += $("#link").height();.

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

Sidebar

Related Questions

If you look at my document here: http://featuredfotografer.com/ you will see that there is
If you look here: http://creathive.net you will see I have an application form down
I'm taking a look at some random Icecast playlists (available here: http://dir.xiph.org/index.php ) and
Working with the Box2djs plugin here: http://www.crackin.com/dev/mms/physics/ ... and all I'm trying to do
If you look here http://jsfiddle.net/Grek/JRqcB/ you'll see that the hyperlink seems to be bottom-aligned
You can look here: http://jsfiddle.net/vsjwww/n7kk3/17/ It all works fine, but as you see, the
look here: http://jsfiddle.net/QTrat/10/ I want to stretch the red box to the floated children
Please take a look here: alt text http://img16.imageshack.us/img16/2810/errrp.jpg Why i got that error when
Take a look at this example here: http://denise.brixwork.com/showlisting/1/8297-Valley-Drive-Alpine-Meadows-Whistler-denise-brown-real-estate And the red tables under Specifications
take a look at the JsFiddle here: http://jsfiddle.net/ru2Fg/2/ Essentially, it starts with two textarea

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.