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

The Archive Base Latest Questions

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

If you look at this page: http://dev.driz.co.uk/tips/ I’m doing some experimentation to learn more

  • 0

If you look at this page: http://dev.driz.co.uk/tips/ I’m doing some experimentation to learn more about jQuery and how to develop things similar to what we’ve seen on Facebook.

You will see I have a tooltip that is positioned relative to the redbox. However if you resize the window it doesn’t adjust the tip in relation to it. How do I fix this?

Also considering that the element is quite tall if the user resizes the window height then I would want the tip to move upwards so it appears within the screen viewport in other words always having about 20px away from the bottom of the page BUT keeping the arrow in the same place it is now so it’s only the box that adjusts itself.

Can anyone help me to achieve those two things? Much appreciated. 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:42:19+00:00Added an answer on May 25, 2026 at 8:42 pm

    you’ll need to calculate the position in the window resize event:

    $(window).resize(function() {
      // your positioning code here
    });
    

    $(document).ready(function() {
    
        calculation();
        $(window).resize(calculation);
    
        function calculation() {
            var location = $("#link").offset();
    
            var top = location.top;
    
            var left = location.left;
            left = left - $('#tip').width();
            left = left - 15;
    
            $("#tip").css({
                'position': 'absolute',
                'top': top + 'px',
                'left': left + 'px'
            });
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering how to revert this animation using jQuery, look this page: http://bksn.mx/TAC/ The
Take a look at this page: http://pearl.tinderfields.com/ In IE6 the menu's background image loads
Look at this simple page: <!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd> <html>
This is what I want my page to look like: Mockup http://img64.imageshack.us/img64/5974/pagedh.jpg I'm not
please look at this page http://www.scriptiny.com/2011/03/javascript-modal-windows/ and view the demo. you will find out
Please take a look at this page: http://www.carteadenisip.ro/partener/id-753.html - the image is not showing
Take a look at this page: http://jqeedu.tuxfamily.org/test/index.php . You'll see a < between the
Have a look at this page: http://173.203.72.190:12123/Search-Results.aspx?Mode=Browse&Cuisine=-1&Zone=-1 If you click 'Browse' with the 'Any
If you look at this page http://ccc.allthingswebdesign.com/index.php/patterns/29 There is an image that if you
Have a look at this page: http://labs.pieterdedecker.be/hetoog/layout.htm It looks alright in Firefox, but IE

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.